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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET custom error problem 1

Status
Not open for further replies.

Microbe

Programmer
Oct 16, 2000
607
AU
Hello,

An ASP.NET server where I have pages hosted is having problems with custom error redirections.

It redirects to the correct error 404 page but then instead of displaying the page, it shows the ASP source code. (Yes, it does have a .asp extension)

We have tried everything we can think of to solve the problem. At the moment it has been pointed to a static .HTM page instead.

Does anyone have any ideas why this might be happening? Steve Davis
hey.you@hahaha.com.au
 
IIS in .NET server by default is setup so that it will only serve static pages (no active content). You will need to enable the ASP extension in the IIS manager on the server (I'm assuming your redirect is to a separate .NET Server).

That's the only suggestion I really have. Hope it works.
 
further to this.. if its actually asp.net youve written, then the correct extension is .aspx
 
I don't have access to the server, but it certainly looks like the solution. EXCELLENT...we have been tearing our hair out over this for months :p

Steve Davis
hey.you@hahaha.com.au

Me? I can't even spell ASP!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top