Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to deploy a webpart to our live SharePoint instance.

STSADM.EXE -o AddSolution -filename webpart.wsp

I then get the following error:

Object reference not set to an instance of an object.
webpart.wsp: The Solution installation failed.

This works fine when used against the the test SharePoint server.

I have double checked all of the permissions that I can think of. Any ideas?

share|improve this question
    
Any info in the ULS logs ? –  Bart May 16 '11 at 13:28
4  
Are you running CMD as an account with farm level permissions? –  PirateEric May 16 '11 at 13:29

3 Answers 3

up vote 0 down vote accepted

This really could be anything. You will need to look at your log files in order to get more information about what went wrong. These are located in the LOGS folder in the SharePoint root directory. The easiest way of doing this is to use a tool like ULSViewer and start it up to capture the logs while you run the stsadm or PowerShell command.

share|improve this answer
    
There was no log being made in the SharePoint log directory, but the error was caught in the Windows Event Viewer. Needed SQL Server access to MSS_Prod_Config in order to deploy. –  caschw May 18 '11 at 14:07

Make sure you're running the command as farm administrator, and try temporarily disabling UAC on the server.

share|improve this answer

Are you the one that created the web part? Sometimes this can also be a result of the feature trying to reference an object that's not available on the farm (ie: writing to a list that doesn't exist, hard coded list GUID that doesn't match production, etc).

As others have said, check the ULS logs (should confirm the above scenario), ensure you're executing the command logged in as the config admin account, and ensure that the SharePoint Administrator service is running on all of the WFE's.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.