261

In Visual Studio 2013 I started getting the following error when trying to open C# files:

No EditorOptionDefinition export found for the given option name:
Tabs/ConvertTabsToSpaces
Parameter name: optionID

I was having no issues all morning until I closed and re-opened a C# solution I was working on when this error started. I checked and this error happens when I open any C# project on this computer. I also tried opening the same project from my other computer and it works fine, so this is not a project error.

I have not changed any VS settings, and I was just trying to open the package manager when this presented itself.

I am at a loss and Dr. Google is not of much help thus far.

Jake1164
  • 12,291
  • 6
  • 47
  • 64

8 Answers8

611

After a reboot and some more research I found this post from a blog. The error described is not the same error I am seeing, however, it was close enough to warrant a try.

Follow the steps:

  1. Close Visual Studio
  2. Open the folder: %LocalAppData%\Microsoft\VisualStudio\12.0\ (in C:\users\'%userName%'\AppData\Local\Microsoft\VisualStudio\12.0\)
  3. Rename the ComponentModelCache folder
  4. Restart Visual Studio.

Visual studio will recreate the folder and all will be well with the world (or at least VS). I love a simple solution, and I hope its of use to anybody else who runs into this issue!

Jake1164
  • 12,291
  • 6
  • 47
  • 64
24

I had a same problem I did small change for Jake Answer

 1 Close Visual Studio
 2 Search ComponentModelCache Folder
 3 Rename folder
 4 Restart the visual Studio

And it start to work

It happened to me again then this time I tried Web Essentials 2013.5 then Its start to work. Hope this will help you.

sansalk
  • 4,595
  • 2
  • 36
  • 37
14

Running windows 8.1, VS2013.3 and was able to find the folder. Using the find function in 8.1 did not find the folder, but looking into the %APPDATA% folder I was directed to a Roaming folder. Then by going one level up I did see the local folder in AppData.

The final path where I was able to find the folder was the same as mentioned above. C:\Users\\AppData\Local\Microsoft\VisualStudio\12.0

Renaming the folder did work.

Null Value
  • 379
  • 6
  • 11
7

I'm afraid that answer is not necessarily correct. In my Windows 8.1 + Visual Studio 2013 for Web (12.0.30723.00 Update 3), there was no ComponentModelCache folder.

Instead, what I did is ran all updates for VS2013 and then went to Control Panel/Programs and Features and performed a repair. Voila, that worked and I think may be a better overall solution.

HiDefLoLife
  • 555
  • 1
  • 8
  • 28
  • 1
    For the guys down voting my answer, may I suggest you leave a comment on why I'm wrong or misguided. I tried to give an explanation that worked fine and didn't require manually deleting a directory. – HiDefLoLife Jan 02 '15 at 23:59
6

Yes I had this same problem with VS2013 and WIndows 7. Renamed folder

C:\Users\YourUsername\AppData\Local\Microsoft\VisualStudio\12.0

fillobotto
  • 3,698
  • 5
  • 34
  • 58
user3442716
  • 59
  • 1
  • 1
3

Installing Web Essentials 2013 for VS 2013 as suggested here Project does not load after installing visual studio 2013 update 2 in Sagar S.'s solution, worked for me with VS 2013 Update 4.

Community
  • 1
  • 1
Dov Miller
  • 1,958
  • 5
  • 34
  • 46
1

I had this problem,

Now I use Windows 8.1 and VS Express 2013 for web. Renaming the folder didn't help as it didn't change when I re-started VS. Repairing the programme didn't help nor did restarting the computer.

What worked for me was just a basic uninstall & reinstall, sometimes a bit of common sense is needed :)

Lee
  • 447
  • 6
  • 9
0

Turning off a plugin called "Visual Assist" solved it for me.

Oleg Stotsky
  • 57
  • 1
  • 6