Monday, November 9, 2009

Object reference not set to an instance of an object - Visual Studio 2008 SP1

I installed the Visual Studio 2008 SP1 on my system. After that I couldn’t create any project in Visual Studio 2008 IDE.

I’m getting the following Error:
“Object reference not set to an instance of an object”

I checked many sites, it suggests me to re-install or repair visual studio 2008.
But it doesn’t help me.

Accidentally it was discovered that this is a per-user problem. After some research I came to know that some of Visual Studio components have had some problems previously so they were skipped from loading.

1. First find out the location of the file devenv.exe, in your system.
2. open Command prompt, set the default location to location of the file devenv.exe
3. Type devenv.exe /ResetSkipPkgs
4. Run it, after completed it will open VS IDE.


1. Open “Visual Studio 2008 Command Prompt” from Visual Studio Tools thru Start menu.
2. Type devenv.exe /ResetSkipPkgs

It worked well and saved me lot. Hope It may help you too!


  1. Thanks a lot a lot and a lot ... I solved my problem with your help.
    I posted this link on some other sites to help people having the same situation.

  2. This don't worked for me :(

  3. It didn't work for me either.

  4. Didn't work for me too.
    Anybody got any solution?

    Marcos Felipe

  5. It was Really helpful!!!

  6. Didn't do a thing for me still get the "Object reference not set to an instance of an object" and that makes absolutely no sense unless vs2008 has lost its data source wizard. OMG the kingdom will fall LMMFAO

  7. Thanks for advice, but PLEASE get rid of the Twitter animated bird - it is possibly the most irritating thing I have ever encountered online. Thank God Firebug lets me remove it!

  8. This is also work for BIDS 2008. Thanks a lot! You save my time!

  9. Thanks a lot bro ... From yesterday tried a lot to fix this but did not found correct way to fix it. After seeing this post I am able to do. Now it's working fine.