H.Ghassami
H.Ghassami

Reputation: 1022

Internal Error 500 : IIS8 error in server but does not show error details on web page in browser

My web page was on a Windows Server 2003. When I change my server to Windows Server 2012 (IIS 8) my web page (that was written in Visual Studio 2010) in last server show over internet but since I change my server it just show this error:

Internal error 500.

I do not know how can i fix it?I change my web config but it dose not change

Upvotes: 6

Views: 24419

Answers (4)

Haku Kou
Haku Kou

Reputation: 11

Please try this:

Error Pages -> 500 -> Edit Feature Settings -> "Detailed Error"

Upvotes: 1

Dan
Dan

Reputation: 905

I was having same problem on a new Windows 2012 Server.

In IIS manager, at the site level, I had also set properties for ASP for send errors to browser to true, but was still getting the generic message in my browser (I am accessing the site from another PC, not locally on the server).

I went into error pages, and clicked 'Edit Feature Settings' to find this dialog window:

Edit Error Pages Settings Dialog

Change setting from 3rd option: Detailed errors for local requests and custom error pages for remote requests To 2nd option: Detailed errors

Upvotes: 2

sa_
sa_

Reputation: 2994

Open your website in browser on server or modify your web.config file to allow showing error on client browser

<customErrors mode="Off">

Then it should give more detail about this error.

Or you can check your server event log.

Upvotes: 1

Kev
Kev

Reputation: 119856

In your web.config file add the following:

<configuration>
    <system.webServer>
        <httpErrors existingResponse="PassThrough"/>
    </system.webServer>
</configuration>

This will ensure upstream errors are rendered to the browser.

Upvotes: 10

Related Questions