MVC 3 Visual Studio 2010 Razor Model intellisense not working


Ever since I updated my projects for VS 11 I can't get my @Model intellisense to work in either version of Visual Studio (2010 or 11). I've tried reverting the .csproj file to remove the VS 11 references, but to no avail. Other MVC 3 Razor project are working just fine. Anyone experience this?


Not working in both versions of Visual Studio smells like the install is possibly corrupted a bit. My first step would be to try and repair the Visual Studio 2010 install and see if the Intellisense behavior comes back for 2010 only.

<ul><li>Control Panel</li> <li>Add / Remove Programs</li> <li>Visual Studio 2010</li> <li>Select Repair in the menu </li> </ul>

If this works then you could be happy with the returned intellisense or try the same steps for Visual Studio 11 and hope it fixes it for both. But if the installation of 2011 is to blame then very likely it would just immediately rebreak both of them


I found <a href="http://connect.microsoft.com/VisualStudio/feedback/details/651252/sp1-breaks-razor-editor" rel="nofollow">this</a> article that addressed my issue.


It seems that some combination of installing VS 11 and some tool updates caused this issue. I got luck and managed to get the following error message:

The type System.Web.Mvc.ModelClientValidationRule exists in both c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.O\Assemblies\System.Web.WebPages.dll and c:\Program Files (6)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll

After doing some digging I wound up uninstalling "Microsoft ASP.NET Web Pages 2 - Visual Studio 2010 Tools", which resulted in everything working. Granted it may have been a better idea to uninstall "Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" instead, but this is working at the moment.

I found a complete lack of information on the Internet about this type of issue, so I'm putting it here for posterity.


  • WebBrowser shortcuts not working in PowerPoint add-in… but WebBrowserShortcutsEnabled is true
  • Avoid exception in ToDate in Pig for individual rows
  • Validate textbox to accept only valid datetime value using DataAnnotations in mvc3
  • Dropdowns with 10 thousand possible values and sequence-important dropdowns vs. graceful degredation
  • Swift - pruning elements from an Array, converting integer strings to integers
  • longest common subsequence: why is this wrong?
  • GDB skips over my code!
  • Step through an assembly language program one statement at a time
  • How to discover a file is changed in GIT during a push
  • matlab/octave random event ode45
  • Edit assembly language code in Visual Studio while stepping through each statement
  • Spring Batch restart uncompleted jobs from the same execution and step
  • Netezza Incremental load from Sql server using SSIS
  • Ruby: FileUtils.cp truncates file; FileUtils.mv it does not?
  • How to create a Unix-domain socket with specific access permissions
  • hibernate sets dirty flag (and issues update) even though client did not change value
  • VBA Excel, loop through variables
  • chrome video src change not working
  • Wrong labels when plotting a time series pandas dataframe with matplotlib
  • Debugging VB6 Code From Visual Studio 2010
  • Android application: how to use the camera and grab the image bytes?
  • Diff between two dataframes in pandas
  • With Hadoop, can I create a tasktracker on a machine that isn't running a datanode?
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Get one-time binding to work for ng-if
  • QLineEdit password safety
  • Nant, Vault & Windows Integrated Authentication
  • Regex thinks I'm nesting, but I'm not
  • What is the “return” in scheme?
  • Bug in WPF DataGrid
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • ORA-29908: missing primary invocation for ancillary operator
  • How do you troubleshoot character encoding problems?
  • jQuery tmpl and DataLink beta
  • How can I estimate amount of memory left with calling System.gc()?
  • How to get next/previous record number?
  • How to disable jQuery.jplayer autoplay?
  • How do you join a server to an Active Directory (domain)?
  • How does Linux kernel interrupt the application?
  • Django query for large number of relationships