Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Crashing after 'Set As StartUp Project'

I have a solution in VS 2012, I try to change the startup project to specific project but the vs crashing immediately (with the other projects - no problem) with the familiar message "Visual Studion Stop Working.."

I try also to define the startup project manualy in the .suo file (See details in Why is "Set as Startup" option stored in the suo file and not the sln file?) But when i reopen the VS, it crashes during the assemblies loading.

Any idea what can be the cause?

Edit:

Additional Details:

Its solution contains also WCF project, run in front of local IIS, This project run perfectly, with the same code, in other team computers. As result of the facts, It seems an environment problem, IIS setting, Permissions and etc.

Note that i already reset VS setting, and also repair the installation and the problem not resolved.

Maybe someone knows what the logical action of 'Set as startup project', what the VS perform during the action except for the start point definition? i think that the root of the problem hides there...

like image 511
Stack Overflow Avatar asked Aug 09 '16 11:08

Stack Overflow


Video Answer


2 Answers

I had this problem too, but on VS 2015. You should logoff from your MS account from VS, set your project as startup and then login back if you want ...

like image 91
Rares-Mihai Chelariu Avatar answered Oct 05 '22 08:10

Rares-Mihai Chelariu


It is hard to guess what the problem could be, but because it works on other team members' machine, it might have something to do with your Visual Studio state.

Try clearing or moving out all files from:

    C:\Users\<Username>\AppData\Local\Microsoft\VisualStudio (if starting as admin)
    C:\Users\<Username>\AppData\Roaming\Microsoft\VisualStudio (if not starting as admin)

You might need to restart your machine if the files are in use before you can delete/move them. These folders contain some VS settings, cached files and logs.

like image 39
AVS Avatar answered Oct 05 '22 07:10

AVS