Welcome to MSDN Blogs Sign in | Join | Help

Paul Andrew

Microsoft Technical Product Manager for the SharePoint Developer Platform
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.

Posted: Thursday, December 04, 2008 3:37 PM by pandrew

Comments

Microsoft SharePoint Bloggers said:

If you are using the Visual Studio 2008 extensions for Windows SharePoint Services for the first time

# December 4, 2008 9:39 PM

Andreas Kviby said:

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.

# December 21, 2008 3:09 PM

Rudy yulianto said:

hay i get SAME problem..i have to tried run Visual Studio 2008 as Administrator..but it is still error until now..any idea?

# January 7, 2009 2:45 AM

pandrew said:

A better way to work around this error is to:

1) Start -> All Programs -> Accessories

2) Right click on Comamnd Prompt and choose Run as Administrator

3) Locate the MSI you're installing with CD

4) Type: MSIEXEC /lx logging.txt /i NameOfMSI.MSI

We've found this is most successful in getting past these issues.

Regards,

Paul

# January 23, 2009 2:26 PM
New Comments to this post are disabled
Page view tracker