Jun 21, 2013, 9:06 PM
Ext.Net MVC could not find Ext.axd 404 on IIS
Hi
We are getting a 404 error on ext.axd. Specifically the following errors
GET ...HealthChecker/extjs/ext-all-js/ext.axd?v=41185 404 (Not Found)
GET ...HealthChecker/extjs/resources/ext_theme_gray/ext-theme-gray-all-embedded-css/ext.axd?v=41185 404 (Not Found)
GET ...HealthChecker/extnet/resources/css/extnet-all-embedded-css/ext.axd?v=41185 404 (Not Found)
GET ...HealthChecker/extnet/extnet-all-js/ext.axd?v=41185 404 (Not Found)
Uncaught ReferenceError: Ext is not defined
Here is our web.config
If someone could please provide some insight/suggestion that'd be greatly appreciated. We've been debugging over day and couldn't find a solution on this fourm and internet.
Thanks
We are getting a 404 error on ext.axd. Specifically the following errors
GET ...HealthChecker/extjs/ext-all-js/ext.axd?v=41185 404 (Not Found)
GET ...HealthChecker/extjs/resources/ext_theme_gray/ext-theme-gray-all-embedded-css/ext.axd?v=41185 404 (Not Found)
GET ...HealthChecker/extnet/resources/css/extnet-all-embedded-css/ext.axd?v=41185 404 (Not Found)
GET ...HealthChecker/extnet/extnet-all-js/ext.axd?v=41185 404 (Not Found)
Uncaught ReferenceError: Ext is not defined
Here is our web.config
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=152368
-->
<configuration>
<configSections>
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="DataAccessLive" providerName="System.Data.SqlClient" connectionString="Data Source=USHOLWHOBADEV01;Integrated Security=SSPI;Initial Catalog=CrunchTime_Interface;"/>
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<system.web>
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="Ext.Net" /><add namespace="Ext.Net.MVC" /></namespaces>
<controls><add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" /></controls>
</pages>
<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>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="1.0.0.0-4.5.10" newVersion="4.5.11" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
<bindingRedirect oldVersion="0.0.0.0-2.2.0" newVersion="2.2.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0" newVersion="2.1.1" />
</dependentAssembly>
</runtime>
<extnet theme="Gray" /></configuration>
Here is our global.asaxusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace HealthInterface
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");
routes.IgnoreRoute("{extnet-root}/{extnet-file}/ext.axd");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
}
protected void Application_AuthenticateRequest(object sender, System.EventArgs e)
{
// Skip authenticating all ext.axd embedded resources (.js, .css, images)
if (HttpContext.Current.Request.FilePath.EndsWith("ext.axd"))
{
HttpContext.Current.SkipAuthorization = true;
}
}
}
}
Our solution runs well on Visual Studios. The problem occurs when we try and set it up on IIS 6.If someone could please provide some insight/suggestion that'd be greatly appreciated. We've been debugging over day and couldn't find a solution on this fourm and internet.
Thanks