"Object reference not set to object instance" visual studio on click

For some reason, every time I press Enter in Visual Studio 2013, I get a message that "Object reference not set to object instance" Why? This is really annoying and I can't work that way.

Thanks, -Gie

+1


source to share


2 answers


To check if it is an extension on error, try starting VS from the VS command line using the / safemode switch:

devenv / safemode



This will allow the IDE to load any extensions, and if the problem goes away, you've found your culprit. While you may have to narrow it down with some experimentation, disable suspicious extensions in the Gallery Extension dialog box.

+2


source


Try it. I ran into this problem and it seems to be fixed.

Open in your preferred editor: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config

Find </DbProviderFactories>

and make sure there is no additional tag left. For me, I had an additional close ( </DbProviderFactories>

) tag . I removed this and it works great.



And do the same with this file C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config

Hope it helps.

thank

+1


source







All Articles