Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "The WebResource.axd handler must be registered in the configuration to process this request." error

I'm getting this error while running my ASP.NET app on IIS7. I've tried doing what it says to do but it doesn't help.

The WebResource.axd handler must be registered in the configuration to process this request.

> <!-- Web.Config Configuration File -->
> 
> <configuration>    
>     <system.web>
>        <httpHandlers>
>            <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
>        </httpHandlers>    
>     </system.web> 
> </configuration>

I'm using a little bit of AJAX which is what I think is causing the issue. Has anyone encountered this before?

like image 887
Russell Patterson Avatar asked Apr 16 '10 16:04

Russell Patterson


2 Answers

I figured it out so I'm posting it here for search reasons. It is a bug in ASP.NET and it has to do with having ColdFusion installed. Microsoft hasn't yet released a fix.

There are two ways to fix this.

  1. Change the AppPool in IIS7 to "Classic .NET AppPool". I'm not sure of any implications with this setting.

  2. Remove all the references to ColdFusion from your applicationHost.config file in system32\inetsrv\config.

like image 144
Russell Patterson Avatar answered Oct 21 '22 04:10

Russell Patterson


ColdFusion installs a global wildcard handler mapping which apparently overrides many of the standard .NET handlers. The solutions mentioned work just fine, but if you can't switch to Classic Mode and don't want to screw with your ColdFusion installation, you can remove the inherited handler mapping at the individual site level.

To do this, go to the site in question in IIS, double-click on "Handler Mappings" under the "IIS" section, and find the handler named something like "AboMapperCustom-XXXXXX" with "*" for the Path. Select the entry and click "Remove" in the sidebar. This will only remove the mapping for your application, so it won't break any existing CF sites on the server.

like image 27
Josh Schultz Avatar answered Oct 21 '22 05:10

Josh Schultz