Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

After installing the latest SL 2 bits as well as the SL 2 Templates for Visual Studio 2008, when you create a new Silverlight Application, you might receive the error "object reference not set an instance of an object".  You might also receive the error "This type of project is not supported in this installtion" error.

This can happen basically if you have the SL 2 Beta 2 templates for VS 2008 or the Beta 1 templates.  In my case I removed the Beta 2 bits but I still received the error while trying to create a new Silvelright Application.

The resolution for that was to run the devenv /resetskippkgs from the command prompt.

Brad has an excellent post covering the common errors you might encounter when creating a Silverlight project using Visual Studio 2008.  Though most of them are refering to the SL 2 Beta 2 bits, they hold good for the RTM Bits as well.

Cheers !!!

posted @ Thursday, October 16, 2008 2:20 PM

Print

Comments on this entry:

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Jacek Ciereszko at 10/17/2008 4:38 AM
Gravatar
Hi,
I deleted all installations connected with SL 2.0 Beta 2 and I had no problems with version SL 2.0 RTW.. so I think that this is the easiest way ;)

btw. you wrote "...for the RTM Bits as well." .. this is RTW version (I know, this is only one letter :P )

Best Regards,
Jacek Ciereszko

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Anu at 11/6/2008 11:01 AM
Gravatar
Thanx a lot.I was facing thid problem from past many days..

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Charlie at 11/9/2008 4:47 AM
Gravatar
Thanks! That did the trick. Also, FYI: I couldn't install the Silverlight 2 Tools for Visual Studio 8 SP1 on Vista. My workaround was to manually install the Silverlight 2 SDK, then run the SL tools installer again. This worked.

Charlie
http://www.NoonmarkAntiques.com

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by igor at 12/13/2008 3:01 AM
Gravatar
thnx, so simple, so useful.

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Asim Sajjad at 12/17/2008 1:55 PM
Gravatar
i have run command devenv /resetskippkgs but still same eror :(

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by briangreunke at 1/17/2009 12:36 AM
Gravatar
Worked beautifully, Thanks!!

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by chirdeep at 1/17/2009 5:19 PM
Gravatar
I had the same error and I ended up re-installing VS 2008 SP1, Silverlight Tools but nothing changed.

devenv /resetskippkgs definitely worked for me.

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Christopher at 2/3/2009 8:42 PM
Gravatar
I ran devenv /resetskippkgs and it now works like a charm - thanks.

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Jason at 2/5/2009 3:13 AM
Gravatar
Thank you!!!!!!!

Why didn't I find this before I spent 3 hours reinstalling everything????

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Amiya at 3/25/2009 12:15 PM
Gravatar
It worked fine 4 me.
I want tutorials for silverlight can u send me.. ... ... ...

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by hvedir at 3/26/2009 9:52 PM
Gravatar
Works excellently!!!
Thank you :)

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by hedayati at 10/3/2009 9:24 PM
Gravatar
Worked beautifully, Thanks!!

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Andres at 10/30/2009 2:55 AM
Gravatar
It works Perfectly, one second I coudn't & the next one, it was magicly fixed, Grate Tip, Thank U very much.

# re: Silverlight 2, Visual Studio 2008 - "Object reference not set an instance of an object error"

Left by Sreejith at 11/9/2009 10:37 PM
Gravatar
"devenv /resetskippkgs" It's really helpful.Its saved my 4-5 hours.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345