Search this blog

Monday, November 9, 2009

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

Problem:
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.

Solution:
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.

(Or)




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!

13 comments:

  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.

    ReplyDelete
  2. This don't worked for me :(

    ReplyDelete
  3. It didn't work for me either.

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

    Marcos Felipe

    ReplyDelete
  5. It was Really helpful!!!

    ReplyDelete
  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

    ReplyDelete
  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!

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

    ReplyDelete
  9. Thank you so much, it works :)

    ReplyDelete