re:
> This won't work for his case because he said that the original pages were legacy ASP
> pages which is not handled by the aspnet_isapi.dll. Therefore, IIS will be the one
> throwing the 404, not ASP.NET.
Peter,
*All* his pages are now *.aspx files.
All he needs to do is map the .asp extension to the aspnet_isapi.dll.
I assumed that would be obvious. Maybe I shouldn't have.
Then, if the web.config entries are included as detailed :
<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx">
<error statusCode="403" redirect="/denied.aspx" />
<error statusCode="404" redirect="/default.aspx" />
</customErrors>
When a request for any *.asp extension file comes in,
aspnet_isapi.dll will redirect to default.aspx.
Thanks for pointing out that I should have included
the reference to mapping the .asp extension to aspnet_isapi.dll.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Espaņol :
http://asp.net.do/foros/
======================================
"Peter Rilling" <> wrote in message
news:...
> This won't work for his case because he siad that the original pages were legacy ASP
> pages which is not handled by the aspnet_isapi.dll. Therefore, IIS will be the one
> throwing the 404, not ASP.NET.
> "Juan T. Llibre" <> wrote in message
> news:...
>> <customErrors mode="RemoteOnly" defaultRedirect="/error.aspx">
>> <error statusCode="403" redirect="/denied.aspx" />
>> <error statusCode="404" redirect="/default.aspx" />
>> </customErrors>
>>
>>
>> Juan T. Llibre, ASP.NET MVP
>> ASP.NET FAQ : http://asp.net.do/faq/
>> Foros de ASP.NET en Espaņol : http://asp.net.do/foros/
>> ======================================
>>
>> "Frankie" <> wrote in message
>> news:...
>>> You mean the one specified in Web.config? Yes - I could, but I don't want *all*
>>> exceptions to result in the user seeing default.aspx. Rather, I want them to get
>>> default.aspx *only* when they request a page name that no longer exists in the site.
>>>
>>> Any ideas for getting that to happen?
>>>
>>> -F
>>> "rviray" <> wrote in message
>>> news:...
>>>>
>>>> Couldn't you replace the pointer to the Custom Error page that your
>>>> WebSite references?
>>>>
>>>>
>>>> --
>>>> rviray