Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 freezes when adding a new Controller in Azure Mobile Service

Every time I right click the Controller folder and click add -> Controller, VS 2015 freezes. I am running on the latest win 10, VS is up to date and all the packages are the latest. I've tried different locations, checking permissions on the files and all types of other fun stuff. The weird part is that it only freezes on an azure mobile services project. If I do a web api project or mvc project I can add the controller just fine.

Any ideas?

like image 625
markiyanm Avatar asked Aug 09 '15 17:08

markiyanm


2 Answers

I also was having this issue for a few days now and I just managed to solve it by re-installing the Entity Framework package using the nuget console:

Update-Package EntityFramework -reinstall

like image 89
Fares Avatar answered Oct 19 '22 21:10

Fares


The above solution didn't solve my problem. Even reinstalling VS 2015 didn't. But the running the following could solve my problem:

  1. open administrative cmd in folder

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

  2. devenv.exe  /resetsettings

  3. devenv.exe  /resetuserdata 

like image 32
Alireza Manashty Avatar answered Oct 19 '22 21:10

Alireza Manashty