views:

31

answers:

2

In my .net app, I redirect to an error page if an error occurs.

It works fine on my local IIS.

When I deploy to a web server, IIS7, it redirects to the error page, all fine, but these is text added to the error page

"The page cannot be displayed because an internal server error has occurred. "

Could this be added via IIS7? It doesnt happen locally - also IIS7.

+1  A: 

Try setting the CustomErrors to off in server's web.config file to find out what is the actual error. The "500 Internal Server Error" could mean anything.

<customErrors mode="Off"/>
Lee Sy En
I know what the error is, I just dont want that text displaying on the error page.
Niall Collins
A: 

In my .net app, I redirect to an error page if an error occurs.

You might have already done this, but it may be worth checking the custom error page on both servers, perhaps one has the extra message hardcoded in there.

m.edmondson