13

Any idea how to fix this error in Visual Studio? This error occurs when trying to create a new C# Console Application. I can create and build a C# Website, but Intellisense does not work. VB Applications work correctly. I tried upgrading to SP1 but that did not help. I would hate to reinstall Visual Studio and have the error crop up again.

"Microsoft visual C# 2008 compiler could not be created. Please re-install Visual Studio."

Michael Myers
  • 188,989
  • 46
  • 291
  • 292
James Lawruk
  • 30,112
  • 19
  • 130
  • 137
  • Which version of Visual Studio are you using? – Jon Skeet Apr 20 '09 at 16:41
  • See also http://social.msdn.microsoft.com/Forums/en-US/04be49aa-de6b-4f45-9a27-86e3f214a0fe/project-could-not-be-opened-because-microsoft-visual-c-2008-compiler-could-not-be-created-, scroll down to Alex Burtsev's comment made at Saturday, July 05, 2008. It is the same as Ashish's answer http://stackoverflow.com/a/13639375/911550, and a lot of users thereafter report that worked for them. Also, one user there suggests to install Silverlight tool for vs2008 sp1. – parvus Jun 05 '14 at 12:59
  • Please try this.It worked for me. http://stackoverflow.com/a/22227869/6473684 – Arsen Ablaev Apr 10 '17 at 12:40

8 Answers8

16

In the command prompt, I ran:

C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\devenv.exe /resetsettings

Everything works fine now! This saved me a reinstall.

James Lawruk
  • 30,112
  • 19
  • 130
  • 137
9

I tried "resetsettings" and repairing the installation form add/remove programs, both didn't work.
Solved the issue by deleting the following registry key.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio

Visual studio will ask you to select the language preference when you open it again. (Make sure that you delete the key from HKCU and not from HKLM)

Nimesh Madhavan
  • 6,290
  • 6
  • 44
  • 55
  • /resetsettings did work for the original poster. If it didn't work for you, then it means you have a different problem with the same symptom. – John Saunders Oct 20 '09 at 08:53
5

I reinstalled VS2008 but problem persisted.Then upon running

C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\devenv.exe /ResetSkipPkgs 

my problem was resolved.

James Lawruk
  • 30,112
  • 19
  • 130
  • 137
Ashish
  • 61
  • 1
  • 1
1

None of the above solutions did the trick for me. Maybe it's because we are working with TFS 2010?

What solved the problem for me was reinstalling KB974558

Maybe it was the combination of doing all that registry stuff mentioned above and reapplying the patch - who knows?

Although this thread is a little bit outdated there may be some other guys out there who have to stay with VS 2008 because they have to keep Compact Framework applications alive

RuedigerKausK
  • 156
  • 1
  • 3
1

I use deven.exe /ResetSkipPkgs and Solve the problem I guess it's like delete the keys like it sais at http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/04be49aa-de6b-4f45-9a27-86e3f214a0fe

allende
  • 11
  • 2
0

I was not able to vote, but restart and resetting the settings did not work for me. But deleting HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0 did work for me. Thank you NimsDotNet, sadly I could not vote for that answer for some reason.

0

Run this in the command prompt of visual studio 2008 otherwise, go to this path and run devenv.exe /resetsettings

C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\devenv.exe /resetsettings

and visual studio will be restarted.

if the problem persists try repairing the file from control panel and this works

Thank You

-1

Did you try reinstalling Visual Studio like you were told to do?

John Saunders
  • 160,644
  • 26
  • 247
  • 397