YMC
YMC

Reputation: 5452

"Object reference not set ..." error on accessing VS solution properties

I get error "Object reference not set to an instance of an object" as soon as I try to access solution properties in Visual Studio 2012. It can be temporally solved by uninstalling Nuget, which is described here: Visual Studio - Error when clicking on Solution -> Properties (Object reference not set to an instance of an object)

If I uninstall NuGet it starts working fine, but as soon as I add NuGet back again same issue occurs again immediately. Nuget update to new version did not help. I wonder if anybody knows reliable solution for this problem.

I have Ver.2012.3.41009 of VS, other than NuGet package I have the following installed packages: MS ASP.NET Web Tools, VS 2012 Color Theme Editor, VS Extensions for Windows Library for JavaScript

UPDATE: Full info about the exception (Not too much: inner exception is null, stack trace consists of single line):

System.NullReferenceException occurred

HResult=-2147467261

Message=Object reference not set to an instance of an object.

Source=Microsoft.VisualStudio.CodeAnalysis.Sdk.UI

StackTrace: at Microsoft.VisualStudio.CodeAnalysis.SdkUiUtilities.GetService[S,T]

(IServiceProvider provider) InnerException:

UPDATE 2: I've just found out this error is solution-dependant. On some solutions it persists while on others does not

Upvotes: 2

Views: 2149

Answers (2)

user2799685
user2799685

Reputation: 11

Looks like a known issue of visual studio. SeeMicrosoft Connect issue for the status of the issue. As mentionned by others, disabling the NuGet package manager seems to be the only known workaround for the moment.

Upvotes: 1

Soundararajan
Soundararajan

Reputation: 2194

Nuget is a extension and "Properties access in a solution" should have nothing to do with Nuget theoretically. How do you access the properties in the soultion. Can you post some sample code ? Is it through the Automation model or VSSDK ?

Upvotes: 0

Related Questions