S
Stuart Read
Hi,
- I'm running .NET framework 1.1 on win2k server
I'm investigating error pages at the moment. I have found how to:
a) display friendly or real .NET errors in the remote browser, by
editing the "customErrors" section of the machine.config (or
web.config) and setting the value to "On", "Off" or "RemoteOnly".
b) display a custom error file, by adding the "defaultRedirect" entry
to the "customErrors" section and pointing them at custom page for
each type of error, e.g. an error 404 and 500 page.
What i can not seem to do is force a .NET application to use Internet
Explorers error pages, i.e. what you would get with .asp if you have
the browser setting "friendly errors on" ticked.
Does anyone know a way of forcing .NET to use the actual browser error
pages, as generated by "shdoclc.dll"?
I can almost achieve what i desire by adding this entry to the
machine.config:
<customErrors mode="RemoteOnly"
defaultRedirect="res://C:\WINNT\System32\shdoclc.dll/dnserror.htm">
<error statusCode="404"
redirect="res://C:\WINNT\System32\shdoclc.dll/dnserror.htm"/>
</customErrors>
This forces IE to display the desired error page, but i'm not going to
use this method as it relies on users local configration (the location
of the .dll). Any way to force .NET to do this work?
Any help would be greatly appreciated, i can't seem to find any
articles relating to this.
- I'm running .NET framework 1.1 on win2k server
I'm investigating error pages at the moment. I have found how to:
a) display friendly or real .NET errors in the remote browser, by
editing the "customErrors" section of the machine.config (or
web.config) and setting the value to "On", "Off" or "RemoteOnly".
b) display a custom error file, by adding the "defaultRedirect" entry
to the "customErrors" section and pointing them at custom page for
each type of error, e.g. an error 404 and 500 page.
What i can not seem to do is force a .NET application to use Internet
Explorers error pages, i.e. what you would get with .asp if you have
the browser setting "friendly errors on" ticked.
Does anyone know a way of forcing .NET to use the actual browser error
pages, as generated by "shdoclc.dll"?
I can almost achieve what i desire by adding this entry to the
machine.config:
<customErrors mode="RemoteOnly"
defaultRedirect="res://C:\WINNT\System32\shdoclc.dll/dnserror.htm">
<error statusCode="404"
redirect="res://C:\WINNT\System32\shdoclc.dll/dnserror.htm"/>
</customErrors>
This forces IE to display the desired error page, but i'm not going to
use this method as it relies on users local configration (the location
of the .dll). Any way to force .NET to do this work?
Any help would be greatly appreciated, i can't seem to find any
articles relating to this.