8

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?

Jonathan
  • 1,725
  • 3
  • 19
  • 45
markiyanm
  • 348
  • 1
  • 5
  • 18

2 Answers2

16

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

Fares
  • 531
  • 4
  • 9
  • I'll give it a shot. I actually tried repairing the install of VS and that didn't help. – markiyanm Aug 11 '15 at 12:42
  • @Layinka could you give some detail so we could try to help you ? – Fares Aug 14 '15 at 10:43
  • This worked for me as well, Thanks! Make sure to use the -reinstall option otherwise it will update the EntityFramework package and all dependencies to the newest version. – kevindstanley Oct 07 '15 at 12:25
  • Sorry for the "me too!", but this worked in my case. – L_7337 Oct 14 '15 at 02:20
  • it didn't work for me. still hangs when I click "add new controller". already wasted 2 hours of my time. should I charge my time to microsoft instead of my customer now? – schlingel Oct 28 '15 at 11:13
  • I removed EntityFramework nuget, and started getting this issue, i installed it back. Everything works fine... I do not understand what is the link between entityframwork and adding new item to project... – venu Oct 04 '16 at 21:33
3

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