Object reference not set to an instance of an object
Object reference not set to an instance of an object
Of course, Murphy's Law says that right after I rave about this on Twitter, it won't work...
I successfully output a huge project to a WebHelp Mobile target a month or so ago. When I just tried to recompile it, I'm getting the dreaded and decidedly unhelpful error "Object reference not set to an instance of an object".
I've tried cleaning the project, and compiling on two different machines (one running XP and one running Windows 7).
I know this problem has come up numerous times in other threads -- any new ideas?
I successfully output a huge project to a WebHelp Mobile target a month or so ago. When I just tried to recompile it, I'm getting the dreaded and decidedly unhelpful error "Object reference not set to an instance of an object".
I've tried cleaning the project, and compiling on two different machines (one running XP and one running Windows 7).
I know this problem has come up numerous times in other threads -- any new ideas?
-
- Senior Propellus Maximus
- Posts: 2637
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Object reference not set to an instance of an object
Tech support helped me with this one. I had hidden a style (in my case it was <a>, I think, but could have been any of the hyperlink styles) so if you have hidden any styles in the interface recently, unhide them and try recompiling.
Best of luck!
Best of luck!
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Re: Object reference not set to an instance of an object
Thank you very much for the suggestion! I had recently disabled some styles, so I was hopeful. Unfortunately, it still didn't work. I will contact tech support as well, before I waste any more time on this one.
Re: Object reference not set to an instance of an object
It would help immensely if the error message told you which object it is your referencing.
Justin Brock
SEO Strategist at Bomgar
(former Technical Writer)
Flarestrap | Madcap Flare SEO
My Madcap Flare site
Twitter
LinkedIn
SEO Strategist at Bomgar
(former Technical Writer)
Flarestrap | Madcap Flare SEO
My Madcap Flare site
-
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: Object reference not set to an instance of an object
I fully agree, but as far as I know the error is what bubbles up from the .NET runtime. That the .NET runtime is suboptimal is a widely known fact.jbrock wrote:It would help immensely if the error message told you which object it is your referencing.
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: Object reference not set to an instance of an object
I'm getting the same error on one of my projects. Of course, it's the one I need to publish today. Did tech support have any helpful suggestions?
Re: Object reference not set to an instance of an object
I'm just now getting back to this topic after we decided not to use mobile output for our last release. Madcap Support quickly traced it to empty style property. (I can safely say I never would have figured it out.)
Open the stylesheet in a text editor. If a line in the stylesheet says
delete the line from the file. (I expect this error might also appear if styles other than the font are empty.)
They did file a bug.
Open the stylesheet in a text editor. If a line in the stylesheet says
Code: Select all
font-size: ;
They did file a bug.
-
- Jr. Propeller Head
- Posts: 1
- Joined: Fri Aug 19, 2011 8:19 am
Re: Object reference not set to an instance of an object
I've had this problem a couple of times, which has been related to the Target when it has been set as the primary target (Make Primary).
By doing so a reference to the target is made in the UserData.fluserzip file. You can find that file under the Project > Users folder. For some reason the reference/link, doesn't always reset when setting the primary target in Flare. So when you try to run your Primary target it just gives up. Maybe worth checking if all else fails.
By doing so a reference to the target is made in the UserData.fluserzip file. You can find that file under the Project > Users folder. For some reason the reference/link, doesn't always reset when setting the primary target in Flare. So when you try to run your Primary target it just gives up. Maybe worth checking if all else fails.
Re: Object reference not set to an instance of an object
I just ran into this same error today. And ChoccieMuffin's comment "I had hidden a style..." was what did the trick for me. Once I went in and enabled the couple of styles I had disabled, I was able to generate output again.
I consider it a bug if there is a feature to hide styles, but using that feature breaks the software.
FYI - I'm using the latest version (7.1) as a demo version to do a pilot project (importing content from an in-house tool) before we buy Flare at my new gig.
I consider it a bug if there is a feature to hide styles, but using that feature breaks the software.
FYI - I'm using the latest version (7.1) as a demo version to do a pilot project (importing content from an in-house tool) before we buy Flare at my new gig.
-
- Propellus Maximus
- Posts: 1028
- Joined: Thu Apr 12, 2007 7:28 am
- Location: Wilmington, DE
- Contact:
Re: Object reference not set to an instance of an object
i don't know if this matters to you, but remember that you will get some dummy content when you're using a demo version without a license code.HeraTech wrote: FYI - I'm using the latest version (7.1) as a demo version to do a pilot project (importing content from an in-house tool) before we buy Flare at my new gig.
Laura A. Castle
http://www.lauracastle.com
http://www.lauracastle.com
-
- Propeller Head
- Posts: 61
- Joined: Mon Jan 03, 2011 12:09 pm
Re: Object reference not set to an instance of an object
Just throwing in my $0.02.
I had a project that threw up the Object Reference error for a PDF build but not an HTML build. The culprit was a body tag in one of my topics had a condition applied. The error would appear when Flare got to the pagination step of the build. Apparently, Flare cannot paginate topics that have all the content in the body excluded.
I removed the condition from the body tag, and placed the condition on the TOC item instead. It worked fine after that.
If you get this error on a PDF build, you can run the "Files With Condition Tags" report (Flare 7.1) and look for any Body tags that have a condition applied.
I had a project that threw up the Object Reference error for a PDF build but not an HTML build. The culprit was a body tag in one of my topics had a condition applied. The error would appear when Flare got to the pagination step of the build. Apparently, Flare cannot paginate topics that have all the content in the body excluded.
I removed the condition from the body tag, and placed the condition on the TOC item instead. It worked fine after that.
If you get this error on a PDF build, you can run the "Files With Condition Tags" report (Flare 7.1) and look for any Body tags that have a condition applied.
MAD Certified Version 6
Flare 7.1
Flare 7.1
Re: Object reference not set to an instance of an object
In case it helps someone else, I'm adding my experience to the first topic googling the message found.
I was getting it on compile of HTML5. The problem was a link that had somehow gotten a strange ID (possibly a legacy from Robohelp conversion weirdness). In this case id="a1"". Removing the id entirely fixed the compile issue, but I assume you could probably just change the id to something valid if you need it.
It didn't cause any problems in HTML Help (CHM) output or in Webhelp, but failed with the "Object Reference" error for HTML5.
CORRECTION: it does cause a problem in HTML Help and Webhelp. The significant factors are:
1) a MasterPage is attached to the target being build.
2) a weird id such as id="a1"" appears in the topic code.
I'll submit a bug report to Madcap in the hopes of getting better error messages, or at least more diagnostic information in future.
Amber
I was getting it on compile of HTML5. The problem was a link that had somehow gotten a strange ID (possibly a legacy from Robohelp conversion weirdness). In this case id="a1"". Removing the id entirely fixed the compile issue, but I assume you could probably just change the id to something valid if you need it.
It didn't cause any problems in HTML Help (CHM) output or in Webhelp, but failed with the "Object Reference" error for HTML5.
CORRECTION: it does cause a problem in HTML Help and Webhelp. The significant factors are:
1) a MasterPage is attached to the target being build.
2) a weird id such as id="a1"" appears in the topic code.
I'll submit a bug report to Madcap in the hopes of getting better error messages, or at least more diagnostic information in future.
Amber
-
- Sr. Propeller Head
- Posts: 210
- Joined: Mon Sep 19, 2011 2:06 am
- Location: Netherlands - Zoetermeer
- Contact:
Re: Object reference not set to an instance of an object
Hi,
FYI:
Starting using Flare 9, I got this message in the next situation:
I added a snippet that contains an image to a topic for which no pagelayout is selected. Next I opened the stylesheet and defined for the IMG tag a max-width of several cm (8 to be exact). When generating the output (PDF) Flare goes in to a loop with message “object reference not set to an instance of an object†given from .NET 4 runtime. To solve this I reset the style for IMG to default and deleted the temporary output folder.
I can imagine that the snippet looks to the topics' pagelayout if there are styles that must be used or inherited and when not found this error occurs.
Even if tried to open the pagelayout (that was NOT assigned to the topic containing the snippet) which also contained an image, the same error occurs.
A task manager kill for flare was needed to get out of this loop.
Greeting,
Rene Severens
FYI:
Starting using Flare 9, I got this message in the next situation:
I added a snippet that contains an image to a topic for which no pagelayout is selected. Next I opened the stylesheet and defined for the IMG tag a max-width of several cm (8 to be exact). When generating the output (PDF) Flare goes in to a loop with message “object reference not set to an instance of an object†given from .NET 4 runtime. To solve this I reset the style for IMG to default and deleted the temporary output folder.
I can imagine that the snippet looks to the topics' pagelayout if there are styles that must be used or inherited and when not found this error occurs.
Even if tried to open the pagelayout (that was NOT assigned to the topic containing the snippet) which also contained an image, the same error occurs.
A task manager kill for flare was needed to get out of this loop.
Greeting,
Rene Severens
"The numbers are strange today; they somehow do not seem to add up."
Re: Object reference not set to an instance of an object
Hi All!
I had the same problem - ID10086 - "Object reference not set to an instance of an object" during building. They were all CHM Targets in my case.
The whole situation is a bit complicated. I tried removing various folders from the Content folder. Then I figured out that it is caused by two topic files. When those files were removed from the Content everything worked.
So, then I tried to figure out what was wrong with those files and found out that they contained cross-references to invalid XML files in the Content folder.
The files were invalid because they contained the following line:
<p class="TopicLine" xmlns="http://www.w3.org/TR/REC-html40"> </p>
So, the whole problem, which took me about a day to fix btw, was cause not by having invalid files but by CROSSREFERENCING to invalid files.
Hope this will help to somebody in need:)
post edit - yes, and the files were converted from RoboHelp too
I had the same problem - ID10086 - "Object reference not set to an instance of an object" during building. They were all CHM Targets in my case.
The whole situation is a bit complicated. I tried removing various folders from the Content folder. Then I figured out that it is caused by two topic files. When those files were removed from the Content everything worked.
So, then I tried to figure out what was wrong with those files and found out that they contained cross-references to invalid XML files in the Content folder.
The files were invalid because they contained the following line:
<p class="TopicLine" xmlns="http://www.w3.org/TR/REC-html40"> </p>
So, the whole problem, which took me about a day to fix btw, was cause not by having invalid files but by CROSSREFERENCING to invalid files.
Hope this will help to somebody in need:)
post edit - yes, and the files were converted from RoboHelp too