I have an existing web site I need to move to IIS 7. The site (which I don't want to rewrite) uses 404 error to serve pages out of a database. IOW, an url like http://crimson/pages/myPage causes a 404 which then goes to site404.aspx which generates the html from the database.
In IIS6, I set up a wild card handler mapped to aspnet_isapi.dll and mapped 404 to point to my site404.aspx and all worked just fine.
I've done the same thing in my new development server with IIS 7 and can't get it to work.
I'm using Classic.net AppPool The wildcard handler looks like this
<add name="WildCardHandler" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness64" />
CustomErrors looks like this:
<customErrors mode="Off" defaultRedirect="url">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="/site404.aspx" />
</customErrors>
On the error pages tab of the site, 404 is mapped to the aspx page and type is set to Execute URL
For all that, I get the following error:
HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Detailed Error InformationModule IIS Web Core Notification MapRequestHandler Handler StaticFile Error Code 0x80070002 Requested URL http://srvr:80/crimson/articles/index Physical Path C:\inetpub\wwwroot\Crimson\articles\index Logon Method Anonymous Logon User Anonymous
Thanks for any insight.