CSharpAddImportCodeFixProvider encountered an error and has been disabled

EGN picture EGN · Apr 27, 2016 · Viewed 10.4k times · Source

I had my PC re-imaged for me. I have Visual Studio Version 14.0.25123.00 Update 2 installed on my computer. I'm getting this error when I try to use VS intellisense to reference another project.

CSharpAddImportCodeFixProvider encountered an error and has been disabled

I have two projects. One of them using namespace ProjectName.Web. And the other project using ProjectName.Web.Controllers. The provider crashes when I reference ProjectName.Web.Controllers, I believe because it is setup as a project. Any idea how to fix this?

Answer

Auronmatrix picture Auronmatrix · Dec 3, 2016

I had the same issue on VS-2015 update 3.
I did was :

1) Closing visual studio

2) restarting as administrator