VSeWSS Error Message: Object reference not set to an instance of an object.
If you are using the Visual Studio 2008 extensions for Windows SharePoint Services for the first time you may see this error when you attempt to deploy.
Object reference not set to an instance of an object.
This will be listed as on line 1 when you try to deploy your solution to your local SharePoint site. It is likely to happen on Windows Server 2008.
It happens because of User Access Control and to resolve it you just need to run Visual Studio 2008 as Administrator. Right click on Visual Studio 2008 to do this.
Comments
Anonymous
December 04, 2008
PingBack from http://blog.a-foton.ru/index.php/2008/12/05/vsewss-error-message-object-reference-not-set-to-an-instance-of-an-object/Anonymous
December 04, 2008
If you are using the Visual Studio 2008 extensions for Windows SharePoint Services for the first timeAnonymous
December 21, 2008
Hi Thanks for the tip but it didnt do it for me. I still have the error in my code when deploying to local Sharepoint installation. I have tried a lot of things but none solves this issue. It is very annoying because I have to deploy some newly developed webparts. Please someone.Anonymous
January 06, 2009
hay i get SAME problem..i have to tried run Visual Studio 2008 as Administrator..but it is still error until now..any idea?Anonymous
January 23, 2009
A better way to work around this error is to:
- Start -> All Programs -> Accessories
- Right click on Comamnd Prompt and choose Run as Administrator
- Locate the MSI you're installing with CD
- Type: MSIEXEC /lx logging.txt /i NameOfMSI.MSI We've found this is most successful in getting past these issues. Regards, Paul