URL Routing problem with ASP.NET 4 on GoDaddy IIS 7

If you get 404 errors when trying to add URL Routing with ASP.NET 4 (Web Forms) on GoDaddy, simply reference the relevant modules in your web.config file:

    <modules runAllManagedModulesForAllRequests="true"> 
      <remove name="UrlRoutingModule" /> 
      <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, 
        Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 
    </modules> 
    <handlers> 
      <add name="UrlRoutingHandler" 
        preCondition="integratedMode" 
        verb="*" path="UrlRouting.axd" 
        type="System.Web.HttpForbiddenHandler, System.Web,  
        Version=2.0.0.0, Culture=neutral,  
        PublicKeyToken=b03f5f7f11d50a3a"/> 
    </handlers> 

Add this to the system.webServer node.


7 Comments

HassanMarch 26th, 2011 at 4:16 pm

ooo thank you.. was going crazy trying to figure this one out and as always godady support had no idea. thanks!!!!!!

Phuc BuiAugust 21st, 2011 at 10:28 pm

Very helpful. This helps to resolve my issue. Thanks!

IribeiroOctober 2nd, 2011 at 12:52 am

thank you man !

Rakesh VermaOctober 31st, 2011 at 1:53 am

Brilliant. It works!

lajpatDecember 20th, 2011 at 11:56 pm

thanks buddy

davepMay 2nd, 2012 at 6:31 am

Just replaced the 404 error with 500 error (“service activation exception).. works locally just fine, with or without the web.config “hack”.

VarunAugust 17th, 2013 at 12:45 am

Hi there,
even after adding this, some of route paths like

/Account/Register is not working..
Any suggestion

Leave a comment

Your comment