Visual Studio 2013 IntelliSense stops working for ASP.NET MVC5 Controllers

后端 未结 26 1786
闹比i
闹比i 2020-11-29 18:42

I am facing a weird problem in my Visual Studio 2013 ASP.NET MVC 5 project. All of a sudden, the IntelliSense in the Controller classes of the MVC 5 project are not working

相关标签:
26条回答
  • 2020-11-29 19:26

    Closing and opening the Visual Studio Solution worked for me.

    0 讨论(0)
  • 2020-11-29 19:27

    I'm not sure why it occurs, but when it happens to me I can recover Intellisense by simply restarting Visual Studio.

    You're right, it's really annoying.

    0 讨论(0)
  • 2020-11-29 19:29

    Usually this happens when the buffers have an error in them. Most of the time the local cache error is cleared when you close a, windows form, for example and reopen therefore reloading it into memory. Many of the solutions above work but sometimes it as as simple as closing the item and designer and reopening the item.

    Additionally you can try to force a reset by

    Ctrl+K, Ctrl+I shows quick info Ctrl+Shift+Space shows you param info

    0 讨论(0)
  • 2020-11-29 19:31

    Resetting my settings or importing previously exported, working settings, and restarting Visual Studio worked: Tools > Import and Export Settings... > Reset all settings.

    EDIT: This keeps happening to me, surprisingly often in VS Express, and occasionally in VS Professional. One thing I noticed in Pro, is that it has happened after unexpected shut downs (when IT forces a reboot in the middle of the night). So it may be related to Visual Studio not closing correctly. The technique described above has worked every time.

    0 讨论(0)
  • 2020-11-29 19:31

    You can unload project and reload the MVC project from solution

    1. Right Click on MVC project in solution explorer -> "Unload Project"
    2. Right Click on MVC project in solution explorer -> "Reload Project"

    After this the Intellesense rework quickly.

    0 讨论(0)
  • 2020-11-29 19:31

    I use VS 2013 and I had the same problem. My solution was update VS to last version. I my case Update 4. Simply reference in project must match with assembly in GAC on computer (OS). Intellisense come from VS not from project.

    I hope that will handy for some one.

    0 讨论(0)
提交回复
热议问题