Search code examples
c#asp.netiis-6url-mapping

UrlMapping giving 404 Page not found on IIS but working fine on local server port


Well I am having a problem when I have put my .NET 2.0 web site on IIS 6. I have used UrlMapping to redirect some old urls. It is working fine when I am using it on the VS local server port but when I deploy it to IIS 6, its giving a 404 Page not found error.

I've found that in a few forums they are talking about using Wildcard Mapping, but none of them provide me with a good explanation of how to achieve this. Added to this, what are the security risks of doing such a modification on IIS Level (if there are any?)

Thanks in advance, Cheers :)


Solution

  • Crack open IIS on the target server.

    Go to your Web Application, right-click and select Properties

    Select the Virtual Directory tab

    Click on the Configuration button under Application settings

    In the Wildcard application maps section, add this:

    c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
    

    Make sure you unchecked File exists.