While creating new project I am getting error "object reference not set to an instance of an object"
Asked Answered
S

7

6

I have just started to use silverlight in visual studio 2k8. I have installed silverlight 3 tools for visual studio 2K8. Now while creating a new project an error is thrown - "object reference is not set to an instance of an object". Screen-shots are attached. Could you guyz please help?

Error screen shot
Create project screen shot

Socialization answered 3/9, 2009 at 11:34 Comment(5)
Do you have any call stack information or the code on which it's failing?Li
Have you tried reinstalling the tools?Li
Yes i have tried reinstalling. Where can I get the call stack information? While creating project it is throwing error.Socialization
have you install silvelight runtime environment.. sometime this cause reason of such problem.. try to get this and install on your machine..Perdomo
@Andrew anything in the Event Logs?Mithridate
S
17

Try re-setting your Visual Studio settings. Go to Start > Visual Studio Command Prompt (2008) and run the commands sequentially:

devenv /ResetSettings
devenv /ResetSkipPKGS

See if this does the trick...

Stomachic answered 10/11, 2011 at 22:12 Comment(4)
I had seen similar reset suggestions on MS forums and tried them without result. However I tried yours anyway, still no joy "Object reference not set to an instance of an object". I also previously tried reinstalling Silverlight. VS2010 SP1Aparejo
I remember this came up for me when dealing with a different symptom, but just in case it helps, have you tried running VS as an administrator? (And/or the above commands?)Stomachic
Also fixed VS2015 for me today! Note that the parameters seem to be case sensitive!!Martell
I tried this one https://mcmap.net/q/81922/-where-is-developer-command-prompt-for-vs2013 but command prompt says 'devenv' is not recognized as an internal or external commandFrenchpolish
I
1

Have you installed VS2008 SP1 before installing Silverlight 3 tools?

I would recommend you to uninstall Silverlight 3 tools first and then look at the Instructions in the below MSDN download link and install Silverlight 3 tools following these instructions:

http://www.microsoft.com/download/en/details.aspx?id=9394

==================================================================

Ready reference for Installation Instructions:

Before installing Silverlight 3 Tools:

Upgrade Microsoft Visual Studio 2008 to Service Pack 1 and make sure that the Visual Web Developer feature is installed. or Install Microsoft Visual Web Developer 2008 Express with SP1. Uninstall any Beta or Preview versions of Expression Blend

Note: This release will not work with the Visual Studio 2008 RTM or Visual Studio 2008 SP1 BETA.

===================================================================

Interstadial answered 11/11, 2011 at 10:53 Comment(0)
M
1

I had a similar issue once and I just did a complete repair of VS. Have you tried that? Not an uninstall/reinstall, but a repair?

Misinform answered 12/11, 2011 at 3:49 Comment(0)
O
1

I face the same problem and now solved it............

Follow the given path and shift+delete everything.

Windows XP:

C:\Documents and Settings\your_user_name\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache

C:\Documents and Settings\your_user_name\Local Settings\Application Data\Microsoft\Team Foundation\3.0\Cache

Windows 7:

C:\Users\your_user_name\AppData\Local\Microsoft\Team Foundation\2.0\Cache

C:\Users\your_user_name\AppData\Local\Microsoft\Team Foundation\3.0\Cache

C:\Users\your_user_name\AppData\Local\Microsoft\Team Foundation\4.0\Cache

So the solution is "TO CLEAR THE CACHE OF YOUR SYSTEM"

Olathe answered 23/7, 2013 at 10:21 Comment(1)
Helped in Win8.1 and VS 2013, path is C:\Users\user_name\AppData\Local\Microsoft\Team Foundation\5.0\Cache. After VS restart - it asked to remove some shapes from diagram (classes that were deleted from project) and opened Ok, without reseting all VS settings.Lingual
K
1

I had a similar issue, but with Windows 8, VS2012 Pro and WP8 SDK.

Try to either update or remove NuGet.

My Solution: UNINSTALLED NuGet (as updates to it did not work)

Kokoruda answered 13/10, 2013 at 18:9 Comment(0)
H
1

I had a similar problem with Visual Studio 2017. When I disable my ReSharper from Tools > Extensions and Updates, then this message is disappeared.

Holdall answered 16/8, 2019 at 17:15 Comment(0)
E
-1

I too had similar issue faced in my VS 2015, Windows 10 OS.

Solution : Close the VS IDE and Open it again.

Hope it should be resolution.

Evangelista answered 11/2, 2017 at 3:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.