I am working on an Asp.net MVC 4 project in Visual Studio 2012, when I open a view, I get this error:
ASP.NET runtime error: method of initializing start before starting. Start by type Microsoft.Web.WebPages.OAuth.PreApplicationStartCode threw an exception with the following error message: The type initializer for "DotNetOpenAuth.Reporting" made an exception. C: \ Users \ escobar5 \ Desktop \ WindowsAzure1 \ MvcWebRole1 \ Views \ Shared_LoginPartial.cshtml
So, I lost intellisense because after this error every call to the ViewBag or model says: "It is impossible to find one or more types needed to compile a dynamic expression"
I updated the OAuth packages from Nuget, but I still get the error.
The project works fine, the only problem is the razor.
This is a screenshot of the error for more details:

Any ideas?
Thank you in advance
source share