Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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."

like image 618
James Lawruk Avatar asked Apr 20 '09 16:04

James Lawruk


3 Answers

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.

like image 139
James Lawruk Avatar answered Nov 10 '22 03:11

James Lawruk


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)

like image 25
Nimesh Madhavan Avatar answered Nov 10 '22 02:11

Nimesh Madhavan


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.

like image 21
Ashish Avatar answered Nov 10 '22 03:11

Ashish