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 (5)

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

  2. Andreas Kviby says:

    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.

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

  4. pandrew says:

    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