I
ilyasdhin
Hi all
In my web application I have the following present for customErrors
<customErrors mode="On">
<error statusCode="404" redirect="PageNotFound.aspx" />
</customErrors>
My application has 2 pages, Page1.aspx and PageNotFound.aspx
I have published this application so that its now under IIS and if I
attempt to browse to Page2 (which doesnt exists) the PageNotFound is
correctly displayed. However if I attempty to browse to say File1.doc,
then the PageNotFound.doc doesnt get displayed, in fact if I browse to
File1.txt or File.ppt, the same thing happens
It appears as though the PageNotFound.aspx is only displayed if the
request was for a .aspx page. This is not what I want, because my
applications creates and deletes documents, and I want a nice page to
be displayed when a document that doesnt exist is requested
Any ideas why this is happening? Is it by design?
Many thanks
In my web application I have the following present for customErrors
<customErrors mode="On">
<error statusCode="404" redirect="PageNotFound.aspx" />
</customErrors>
My application has 2 pages, Page1.aspx and PageNotFound.aspx
I have published this application so that its now under IIS and if I
attempt to browse to Page2 (which doesnt exists) the PageNotFound is
correctly displayed. However if I attempty to browse to say File1.doc,
then the PageNotFound.doc doesnt get displayed, in fact if I browse to
File1.txt or File.ppt, the same thing happens
It appears as though the PageNotFound.aspx is only displayed if the
request was for a .aspx page. This is not what I want, because my
applications creates and deletes documents, and I want a nice page to
be displayed when a document that doesnt exist is requested
Any ideas why this is happening? Is it by design?
Many thanks