title: Upgrade from .NET 4.5 MVC 4 to .NET 4.5.2 MVC 5.2
body: <p>Almost the same <a href="https://stackoverflow.com/questions/20205654/upgrade-from-mvc-4-4-5-to-mvc-5-4-5-1">scenario as before</a> but this time I need to upgrade an app from .NET 4.5 (MVC 4) to 4.5.2 (MVC 5.2). I'd solved the previous issue by doing it on a Win 8 machine. It didn't work on Win 7.
  Now, doing the same procedures (on a Win 8 machine) I have problems again.</p>
  
  <p>I've <a href="http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2" rel="nofollow noreferrer">followed the steps</a>:</p>
  
  <ol>
  <li>Upgraded all projects to Framework 4.5.2.</li>
  <li>Checked for the Microsoft.AspNet.WebHelpers to uninstall it and it didn't exist.</li>
  <li>Did the <strong>Manage NuGet Packages for Solution...</strong> step, and upgraded <strong>Microsoft.ASPNET MVC</strong> to 5.2 and <strong>Microsoft.ASPNET Web API</strong> to 2.2.</li>
  <li>Edited all Web.Config files.</li>
  <li>I've tried the Final Steps (Unload Project...) but the GUID was already gone.</li>
  </ol>
  
  <p>The project builds fine but when I run it I get a Server Error page:</p>
  
  <pre><code>Attempt by security transparent method   
  'WebMatrix.WebData.PreApplicationStartCode.Start()' to access security 
  critical method 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' failed.
  </code></pre>
  
  <p>I've tried all solutions that I found on the Net but no luck.</p>
  
  <p>Is there anything else I need to do it because of the target versions 4.5.2/5.2?</p>
  
  <p>UPDATE 1</p>
  
  <p>Removed WebMatrix.Data and WebMatric.WebData. Now I get 403.14 error. The request hits Global.asax Application_PreRequestHandlerExecute method but it doesn't go into Application_Start.</p>