PDA

View Full Version : [CLOSED] MVC issues with getting ext.axd



craig2005
Jun 05, 2012, 5:16 PM
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-all-js/ext.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
);

}

Daniil
Jun 05, 2012, 5:58 PM
Hi,

Please follow this guide:
http://forums.ext.net/showthread.php?16920&p=72510&viewfull=1#post72510

craig2005
Jun 06, 2012, 2:24 PM
Hi,

Please follow this guide:
http://forums.ext.net/showthread.php?16920&p=72510&viewfull=1#post72510

Perfect, thanks!!!!