Jun 05, 2012, 5:16 PM
[CLOSED] MVC issues with getting ext.axd
Has anyone seen this issue. It seems like the route is trying to grab files from a folder that doesn't exist or it's not being handled correctly.
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:2186/extnet/extnet-...xt.axd?v=25767
Web.config
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:2186/extnet/extnet-...xt.axd?v=25767
Web.config
<system.web>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
</httpHandlers>
<httpModules>
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="DirectRequestModule" />
<add
name="DirectRequestModule"
preCondition="managedHandler"
type="Ext.Net.DirectRequestModule, Ext.Net"
/>
</modules>
<handlers>
<remove name="DirectRequestHandler" />
<add
name="DirectRequestHandler"
verb="*"
path="*/ext.axd"
preCondition="integratedMode"
type="Ext.Net.ResourceHandler"
/>
</handlers>
</system.webServer>
Global.ascx.cs public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
Last edited by geoffrey.mcgill; Jun 06, 2012 at 2:45 PM.
Reason: [CLOSED]