amateur
amateur

Reputation: 44605

Error page in IIS7 has text added to it

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.

Upvotes: 2

Views: 206

Answers (2)

m.edmondson
m.edmondson

Reputation: 30872

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.

Upvotes: 0

bla
bla

Reputation: 5480

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"/>

Upvotes: 1

Related Questions