Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Can't Load. Visual C# 2015 RC Compiler Could Not Be Created

I am trying to install Visual Studito 2015 RC Community edition.

I downloaded the web installer and installed all components. After installation, I rebooted my machine as instructed, but it keeps giving me the same error when I try to make an application. Please see the screen below:

Screenshot showing the error "Project ... could not be opened because the Visual C# 2015 RC compiler could not be created.  Please re-install Visual Studio."

I have tried this answer and this answer from earlier versions of Visual Studio. It resets the settings but ultimately had the same error.

I have also tried removing C:\Users\Gogol\AppData\Local\Microsoft\VisualStudio folder, but again, no luck.

I also have devenv.exe added to the path. I can access devenv in command prompt.

like image 270
Gogol Avatar asked May 27 '15 21:05

Gogol


3 Answers

This method worked for me:

Delete contents of these 2 folders

C:\Users\%USERNAME%\AppData\Roaming\Microsoft\VisualStudio\
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

Then run the VS.NET as admin, otherwise it won't be able to renew the Roaming folder correctly.

like image 141
VahidN Avatar answered Oct 23 '22 15:10

VahidN


Run devenv.exe as administrator. It worked for me.

like image 26
bernnabe Avatar answered Oct 23 '22 16:10

bernnabe


After some research, I was able to install VS 2015 Community and use it. This happened in my case because I paused the installation and restarted it later on. I uninstalled VS 2015 from my computer, restarted my computer and re-ran the setup ( including downloads) and it worked. Answering my own question just in case anyone is still searching for solution.

like image 11
Gogol Avatar answered Oct 23 '22 15:10

Gogol