Object reference not set to an instance of an object.

Dec 27, 2010 at 6:53 PM

I get this error when I try to use SharePoint Solution Installer.  Is this a problem with my WSP code? It happens right after I click next after the "System Check" (All checks were passed.)

 

 



See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object.   at CodePlex.SharePointInstaller.InstallerForm.ReplaceContentControl(Int32 index)   at CodePlex.SharePointInstaller.InstallerForm.nextButton_Click(Object sender, EventArgs e)   at System.Windows.Forms.Control.OnClick(EventArgs e)   at System.Windows.Forms.Button.OnClick(EventArgs e)   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)   at System.Windows.Forms.Control.WndProc(Message& m)   at System.Windows.Forms.ButtonBase.WndProc(Message& m)   at System.Windows.Forms.Button.WndProc(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************mscorlib    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3615 (GDR.050727-3600)    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------Setup    Assembly Version: 1.0.0.0    Win32 Version: 1.0.0.0    CodeBase: file:///C:/Documents%20and%20Settings/newoga/My%20Documents/Visual%20Studio%202008/Projects/Newoga.ActivityLibrary.Activities/SolutionInstaller/Setup.exe----------------------------------------System.Windows.Forms    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3614 (GDR.050727-3600)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Drawing    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------Microsoft.SharePoint    Assembly Version: 12.0.0.0    Win32 Version: 12.0.6539.5000    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SharePoint/12.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.dll----------------------------------------System.Xml    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------System.Configuration    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Data    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------Microsoft.SharePoint.Security    Assembly Version: 12.0.0.0    Win32 Version: 12.0.4518.1016    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SharePoint.Security/12.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Security.dll----------------------------------------System.Transactions    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------System.Web    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3614 (GDR.050727-3600)    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll----------------------------------------Microsoft.SharePoint.Search    Assembly Version: 12.0.0.0    Win32 Version: 12.0.6531.5000    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Microsoft.SharePoint.Search/12.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Search.dll----------------------------------------msvcm80    Assembly Version: 8.0.50727.3053    Win32 Version: 8.00.50727.3053    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_B80FA8CA/msvcm80.dll----------------------------------------System.DirectoryServices    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.DirectoryServices/2.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll----------------------------------------Microsoft.Office.Server    Assembly Version: 12.0.0.0    Win32 Version: 12.0.6420.1000    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Server/12.0.0.0__71e9bce111e9429c/Microsoft.Office.Server.dll----------------------------------------Microsoft.Office.Server.Intl    Assembly Version: 12.0.0.0    Win32 Version: 12.0.6413.1000    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Server.intl/12.0.0.0__71e9bce111e9429c/Microsoft.Office.Server.intl.dll----------------------------------------Microsoft.SharePoint.Library    Assembly Version: 12.0.0.0    Win32 Version: 12.0.6517.5000    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.SharePoint.Library/12.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Library.dll----------------------------------------System.ServiceProcess    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration>    <system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.


Feb 1, 2011 at 3:24 PM

Me too.

May 5, 2011 at 6:46 AM

Which version?

Jul 12, 2011 at 12:08 PM

The error is in the version 1.2.2. In the file DeploySolutionCmd.cs, the first line of the Execute() method.

Sep 17, 2011 at 10:50 AM

(Sorry, the file you listed only occurs in the V2 tree, and I've not worked with that tree, so I can't help with that error.)