Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC3/Razor Server Error in '/' Application
    text
    copied!<p>I'm getting an intermittent error when I "run" a MVC app from Visual Studio. Here is the error:</p> <h2>Server Error in '/' Application.</h2> <p>The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p> <p>Requested URL: /Views/DDF/Edit.vbhtml</p> <hr> <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225 </p> <p>My default routing is set up as follows:</p> <pre><code>Shared Sub RegisterRoutes(ByVal routes As RouteCollection) routes.IgnoreRoute("{resource}.axd/{*pathInfo}") routes.MapRoute( _ "Default", _ "{controller}/{action}/{id}", _ New With {.controller = "DDF", .action = "Index", .id = UrlParameter.Optional} ) End Sub </code></pre> <p>Normally, when I start the app, the browser tries to display the url <a href="http://localhost:49999/" rel="nofollow">http://localhost:49999/</a> and the DDFController's Index action is executed and rendered. Occasionally, VS tries to open the the following url:</p> <p><a href="http://localhost:49999/Views/DDF/Edit.vbhtml" rel="nofollow">http://localhost:49999/Views/DDF/Edit.vbhtml</a></p> <p>I don't know why it is trying to display the edit action, or why it adds ".vbhtml" to the url, but it fails with the error.</p> <p>So, Why is Visual Studio using the wrong url (with the vbhtml extension) and how can I fix it?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload