stsadmin error: "Object reference not set to an instance of an object"<p>Hi,</p> <p>I have made a standard single server MOSS installation. Everything appears to be working fine, but I get errors when using stsadm to add solutions. (i.e. the Application Template Core, part of the server admin templates - <a title="http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&amp;displaylang=en</a>).</p> <p>Running i.e. &quot;stsadm -o addsolution -filename ApplicationTemplateCore.wsp&quot; gives the following error:</p> <p>Object reference not set to an instance of an object. ApplicationTemplateCore.wsp: The Solution installation failed. </p> <p>I get the excact same error, when I try to deploy Solutions using VSEWSS (November CTP). </p> <p>Any ideas to solve this would be greatly appreciated.</p> <p> </p> <p>Regards,</p> <p>Thomas N. Sørensen</p>© 2009 Microsoft Corporation. All rights reserved.Sat, 14 Nov 2009 16:05:31 Z63f0f95d-1215-4041-be6d-64ae63bda276http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#63f0f95d-1215-4041-be6d-64ae63bda276http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#63f0f95d-1215-4041-be6d-64ae63bda276Thomas N. Sørensenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Thomas%20N.%20S%u00f8rensenstsadmin error: "Object reference not set to an instance of an object"<p>Hi,</p> <p>I have made a standard single server MOSS installation. Everything appears to be working fine, but I get errors when using stsadm to add solutions. (i.e. the Application Template Core, part of the server admin templates - <a title="http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&amp;displaylang=en</a>).</p> <p>Running i.e. &quot;stsadm -o addsolution -filename ApplicationTemplateCore.wsp&quot; gives the following error:</p> <p>Object reference not set to an instance of an object. ApplicationTemplateCore.wsp: The Solution installation failed. </p> <p>I get the excact same error, when I try to deploy Solutions using VSEWSS (November CTP). </p> <p>Any ideas to solve this would be greatly appreciated.</p> <p> </p> <p>Regards,</p> <p>Thomas N. Sørensen</p>Thu, 22 Feb 2007 14:45:57 Z2008-03-01T20:28:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#955d1666-5f18-437d-86b5-54d307eaa9b4http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#955d1666-5f18-437d-86b5-54d307eaa9b4aki1http://social.msdn.microsoft.com/Profile/en-US/?user=aki1stsadmin error: "Object reference not set to an instance of an object"I seem to have the exact same issue, did you manage to solve this?Tue, 03 Apr 2007 07:22:21 Z2007-04-03T07:22:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#877969fe-3d5d-4100-b362-29a0d4fef12chttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#877969fe-3d5d-4100-b362-29a0d4fef12cjos van vlimmerenhttp://social.msdn.microsoft.com/Profile/en-US/?user=jos%20van%20vlimmerenstsadmin error: "Object reference not set to an instance of an object"I have the same problem when i try to deploy webparts for moss 2007 in visual studio 2005. I'm making webparts on the same computer for a couple of months but it's only since a couple of day's I get this error with every project I try to deploy (even if there are no files in it).  I would appreciate it very much if anyone knows the solution to thisMon, 16 Apr 2007 07:38:50 Z2007-04-16T07:38:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#d5455aaa-268f-4057-979b-647e98c9f780http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#d5455aaa-268f-4057-979b-647e98c9f780Janie Pumphreyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Janie%20Pumphreystsadmin error: "Object reference not set to an instance of an object"I had the same error.  I didn't have permission on the configuration &amp; content database.  After getting permission to the database, the error went away.  I'm not sure if this is what's causing the problem in your case, but it worked for me.Tue, 24 Apr 2007 16:07:06 Z2007-04-24T16:07:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#a341bb65-6dee-4711-b1ac-059c6d84b461http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#a341bb65-6dee-4711-b1ac-059c6d84b461George Olsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=George%20Olsonstsadmin error: "Object reference not set to an instance of an object"<p>I am having the same problem with Visual Studio.  Here is what I am doing as a work around.  If you look in the bin folder there is a batch file called setup.bat.  It is a pain, but you can remove and deploy the part by opening the command prompt and navigating to the bin folder.  Enter setup /uninstall or setup /install to remove or deploy the solution.  This is not installing the assembly in the GAC so you will still need to do this manually.  As a refresher go to start, then run and type 'assembly'.  Just drag and drop your assembly there.  Or as an alternative you can add some lines to the setup.bat, for example:</p> <p> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p>@rem----------------------------------------------------------------------<br>@rem    LDeploy<br>@rem----------------------------------------------------------------------<br>:LDeploy<br>    echo Adding solution %PackageName% to the SharePoint ...<br>    &quot;%SPAdminTool%&quot; -o addsolution -filename &quot;%PackageFile%&quot;</p> <p>    echo Deploying solution %PackageName% ...<br>    &quot;%SPAdminTool%&quot; -o deploysolution -name &quot;%PackageName%&quot; -local -allowGacDeployment -url %TargetWebUrl%</p> <p>    echo Activating feature WebPart5 ...<br>    &quot;%SPAdminTool%&quot; -o activatefeature -id 5be720ad-e963-404d-8026-2eecb5c4f6d0 -url %TargetSiteUrl%</p> <p>    <strong>&quot;%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe&quot; -if WebPart5.dll</strong></p> <p><strong>    iisreset</strong></p> <p>    goto :EOF</p></div></div> <p> </p> <p></p> <p> </p>Tue, 08 May 2007 14:39:24 Z2007-05-08T14:39:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#d75c0a69-3ba2-4f09-97dc-8df3970cba0bhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#d75c0a69-3ba2-4f09-97dc-8df3970cba0bKlaus Kurzawahttp://social.msdn.microsoft.com/Profile/en-US/?user=Klaus%20Kurzawastsadmin error: "Object reference not set to an instance of an object"<p align=left><font face=Arial size=2></font> </p> <p>I do also get this error trying install radEditorMOSS.wsp (telerik.com).</p> <p align=left> </p> <p align=left>I have full permission in the farm but there must be something else that I should have permissions to.</p> <p align=left> </p> <p align=left>Any help appreciated...</p> <p align=left> </p> <p align=left>Klaus Kurzawa,</p> <p align=left>Sweden</p> <p align=left> </p> <p align=left><em><font color="#ff0000"><strong>(Updated by </strong>Klaus<strong>)<br></strong></font></em>Found a solution of my problem:</p> <p align=left>My Computer -&gt; Manage -&gt; Added myself to WSS_RESTRICTED_WPG (Group for the Windows SharePoint Services farm administrator. This group is required for the WSS Administration Service to function.)</p>Tue, 16 Oct 2007 12:57:10 Z2007-10-16T12:57:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#202fa160-b62b-4720-819b-22041200cb98http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#202fa160-b62b-4720-819b-22041200cb98Sunildalavayhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sunildalavaystsadmin error: "Object reference not set to an instance of an object"<br> <p>I am getting this error while trying to add the solution using stsadm -o addsolution -filename &quot;&lt;drive&gt;:\ApplicationTemplateCore.wsp&quot; command<br></p> <p><br></p> <p>Initialization failure</p> <p>&lt;drive&gt;:\ApplicationTemplateCore.wsp: The Solution installation failed.</p><br> <p>Any help appreciated.</p><br> <p>Sunil<br></p>Tue, 23 Oct 2007 09:50:06 Z2007-10-23T09:50:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#255c0550-2c8d-40a0-8938-3f2da4109544http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#255c0550-2c8d-40a0-8938-3f2da4109544John Truxtonhttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20Truxtonstsadmin error: "Object reference not set to an instance of an object"<p align=left><font face=Arial size=2>I am getting the same thing  <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif">  Anyone found a soultion yet?</font></p> <p align=left> </p> <p align=left> </p> <p>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&gt;stsadm -o addsolution -filename d:\applicationtemplatecore.wsp</p> <p align=left> </p> <p>Object reference not set to an instance of an object.<br>d:\applicationtemplatecore.wsp: The Solution installation failed.</p>Fri, 02 Nov 2007 13:09:52 Z2007-11-02T13:09:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#00dee06b-65b3-4781-b1a6-e7332fb60efehttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#00dee06b-65b3-4781-b1a6-e7332fb60efeGuilherme Rodrigueshttp://social.msdn.microsoft.com/Profile/en-US/?user=Guilherme%20Rodriguesstsadmin error: "Object reference not set to an instance of an object"<br>According to this link: <a title="http://www.telerik.com/community/forums/thread/b311D-bachea.aspx" href="http://www.telerik.com/community/forums/thread/b311D-bachea.aspx">http://www.telerik.com/community/forums/thread/b311D-bachea.aspx</a>, the problem is permission. First you have to be part of the Farm Administrator's. If you already part, go to My Computer --&gt; Manage --&gt; and add your user to the group WSS_RESTRICTED_WPG.<br>Tue, 06 Nov 2007 13:42:38 Z2007-11-06T13:42:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#84ccf0d8-e8df-4a4e-96cc-fbfb5d32bf5dhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#84ccf0d8-e8df-4a4e-96cc-fbfb5d32bf5dksathttp://social.msdn.microsoft.com/Profile/en-US/?user=ksatstsadmin error: "Object reference not set to an instance of an object"<font face=Arial size=2> <p>Guilherme is close - it is permissions-related.  </p> <p align=left> </p> <p align=left>But, from what I've discovered this morning, it also has to do with the SQL Admin Content database.  The user executing the STSADM command must have full control access to this DB.  I had this same problem and had my DBA add my user account to this DB w/ full control and reran the scripts with full success.  </p> <p> </p> <p align=left> </p> <p align=left></font> </p>Thu, 07 Feb 2008 17:37:58 Z2008-03-01T20:28:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#2d88a30c-2a59-4b2f-a71c-ef27f35d6ad6http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#2d88a30c-2a59-4b2f-a71c-ef27f35d6ad6Brad Cotehttp://social.msdn.microsoft.com/Profile/en-US/?user=Brad%20Cotestsadmin error: "Object reference not set to an instance of an object"<p align=left><font face=Arial size=2>ksat -</font></p> <p align=left> </p> <p align=left>I am having the same problem. Someone else in my company set up SharePoint, and running deploysolution fails for any solution. Two questions -</p> <p align=left> </p> <p align=left>Which database - SharePoint Central Administration content database (SharePoint_AdminContent_guid)?</p> <p align=left> </p> <p align=left>Which database role memeberships do you check off to get full control? db_owner?</p> <p align=left> </p> <p align=left>Thanks</p> <p align=left>Brad Cote</p>Wed, 11 Jun 2008 21:32:38 Z2008-06-11T21:32:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#42a071f8-2c65-445b-8dc8-5add95f9ff91http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276#42a071f8-2c65-445b-8dc8-5add95f9ff91insy09http://social.msdn.microsoft.com/Profile/en-US/?user=insy09stsadmin error: "Object reference not set to an instance of an object" I experienced the same problem, I had extracted and coipied the file and had this error.<br><br><strong>Answer:<br></strong>Within propertises of the *.wsp file check the security tab. Ensure the 'users' account has full control and re-run. This worked for me you may need to add permissions for a different user though.<br><br>Hope this helps.<br><br>Tue, 25 Nov 2008 10:28:15 Z2008-11-25T10:28:15Z