"Object reference not set to object instance" visual studio on click
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.
source to share
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
source to share