Cannot find server page

  • Thread starter Thread starter Fergus Ryder
  • Start date Start date
F

Fergus Ryder

I am working on a Kiosk project which will run IE in kiosk mode
(iexplore.exe -k <url>). The customer will use a touch screen to
interact with the device. In teh event of connection/web server errors
I would like to avoid displaying the 'Cannot find server'/'The page
cannot be dissplayed' error page. Does anyone know if this page
cannot be overriden with my own more user-friendly version, much like
a web server will allow a more user-friendly version of their 404
errors.

Thanks

Fergus
 
I don't think there is an easy way to do what you want. First, you'd have
to set IE to show it's own "friendly" HTTP error messages in
Tools...Internet Options...Advanced...Browsing section. Now comes the hard
part - those error messages are hard-coded in the shdoclc.dll file.
Examples can be see by entering these in your IE address bar:

res://shdoclc.dll/HTTP_501.htm
res://shdoclc.dll/navcancl.htm
res://shdoclc.dll/404_HTTP.htm - the one we're most familiar with

I think you would need to open that file with an HTML editor and hack it to
produce the custom error messages you want or use a program like Resource
Hacker:
http://www.users.on.net/johnson/resourcehacker/
Someone did something similar - see post #11 here:
http://www.daniweb.com/techtalkforums/showthread.php?t=1827
and here: http://wint.virtualplastic.net/showtweak.php?tweak_id=58

However, you'd really have to know what you are doing, and of course use a
copy of said file that's not in use by the system itself. Also see:
http://www.delphidabbler.com/articles.php?article=10

And, that file is probably a system-protected file, so in replacing it you'd
have to do this work-around:
Replacing files protected by the Windows File Protection
http://support.microsoft.com/default.aspx?scid=kb;en-us;555047
 
Back
Top