Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The page cannot be displayed / error

Status
Not open for further replies.

autumnEND

Programmer
Nov 1, 2005
61
GB
Hi im new to asp net. ive made a web application that lets the user add content to the site, these details are stored in an sql database. When i tested it all on my pc it worked fine. But some users have said when trying to add content they sometimes get the error message :

The page cannot be displayed

<font style="COLOR:000000; FONT: 8pt/

i thought it might be a problem with the css used with the site, i did a search through all of my site and didnt find <font style="COLOR:000000; FONT: 8pt/ anywhere.

I wondered if there was a setting somewhere for error messages.

Any help would be greatly appreciated.I havent got a clue where to begin.

I use my computer as the web server and have iis 5.1 installed using xp pro, if that helps
 
What do you do when you get errors on your website? Are they trapped and logged somewhere? If so, then check the logs, if not I'd consider trapping them!


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I wasnt doing anything :( Ill have a go at trapping them . whats the easiest / best way of setting that up?

and where abouts would they be stored?
 
There are lots of ways of trapping errors. Some examples would be to use Try/Catch blocks or use an error page that gets that last error (the default error page can be set in the web.config file under the customErrors tag). Then you can log the errors to wherever you want (e.g. a database/email/event viewer).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
yeah i had an error page set up in the web config

<customErrors mode="RemoteOnly"defaultRedirect="ErrorPage.htm" />

but for some reason if the app errored it was showing the

The page cannot be displayed

<font style="COLOR:000000; FONT: 8pt/ error

rather than the ErrorPage.htm

ill try the trapping method and see how it goes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top