Object reference not set to an instance of an object

Topics: Developer Forum, User Forum
Feb 16, 2007 at 1:25 PM
I try to build a help file and I get the following in the output pane:

Creating output and working folders...
Clearing working folder...
Finding tools...


BUILD FAILED: Object reference not set to an instance of an object.

Downloaded current prod version this morning. Downloaded VS 2005 SDK and installed this morning.
Coordinator
Feb 16, 2007 at 4:08 PM
There's a bug in the 1.3.3.1 version that causes that. You can either specify the path to Sandcastle in the SandcastlePath property or download the 1.3.4.0 Special build from the Planned Releases section of the Releases page which contains the fix.

Eric
Feb 16, 2007 at 6:13 PM
I'm not sure I know what I'm doing. I uninstalled the version I had. I down loaded 1.3.4.0. and installed it. I now get the following:

Sandcastle Help File Builder GUI, version 1.3.4.0
Creating output and working folders...

GC: Memory used before: 1,538,464
GC: Memory used after: 1,165,516

Clearing working folder...
Finding tools...
Last step completed in 00:00:05.983


BUILD FAILED: Could not find path to Sandcastle tools


GC: Memory used before: 1,325,172
GC: Memory used after: 1,165,744

I'm not sure where the Sandcastle tools are and whether or not they are even installed???
Coordinator
Feb 16, 2007 at 8:06 PM
Did you install Sandcastle itself? If not, see the Links to Resource topic in the help file for where to download it.

Eric
Feb 16, 2007 at 8:18 PM
I did now. I thought I had downloaded and installed everything from the resources link. I noticed that Sandcastle runs on 2003 server and XP (sp2). I'm running 2000 and I now get the following error:

Sandcastle Help File Builder GUI, version 1.3.4.0
Creating output and working folders...

GC: Memory used before: 1,668,156
GC: Memory used after: 1,116,148

Clearing working folder...
Finding tools...
Found Sandcastle in 'C:\Program Files\Sandcastle\'
Found HTML 1.x help compiler in 'C:\Program Files\HTML Help Workshop\'
Validating documentation assembly information...
-------------------------------
Creating Sandcastle configuration file...
Last step completed in 00:00:00.93
-------------------------------
Generating shared content files (en-US)...
Last step completed in 00:00:00.46
-------------------------------
Generating reflection information...
C:\Documents and Settings\watsonrl\My Documents\Visual Studio 2005\Projects\ViewPOData\ViewPOData\bin\Release\Help\Working\GenerateRefInfo.bat
MrefBuilder (v2.2.61208.1447)
Copyright c Microsoft 2006
Error: Unresolved assembly reference: System.Configuration (System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) required by ViewPOData
Last step completed in 00:00:02.62


BUILD FAILED: Unexpected error in last build step. See output above for details.


GC: Memory used before: 2,163,316
GC: Memory used after: 1,139,528


Coordinator
Feb 17, 2007 at 2:40 AM
Edited Feb 17, 2007 at 2:40 AM
You need to add the referenced assembly to the Dependencies property of the project. This and several other common problems are covered in the FAQ found in the help file.

Eric
Feb 18, 2007 at 12:14 AM
That's got it. Thanks Eric, next time I'll try to pay more attention to the FAQs. I just assumed that Sandcastle wouldn't work with Windows 2000.

Thanks again!

Ray