Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

asp.net

iis-8

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

like image 984
H.Ghassami Avatar asked Oct 19 '13 15:10

H.Ghassami


People also ask

How do you solve 500 Internal server error There is a problem with the resource you are looking for and it Cannot be displayed?

There is a problem with the resource you are looking for, and it cannot be displayed. The first solution to a 500 internal server error is to refresh the page. If the error persists, you may try clearing the cookies, deactivating faulty plugins or themes, fixing the . htaccess file, or contacting your hosting provider.

How do you fix the page Cannot be displayed because an internal server error has occurred?

The page cannot be displayed because an internal server error has occurred. If running on Azure, have a look at site slots. You should warm up the pages on a staging slot before swapping it to the production slot.

How do I fix 500 Internal server error in Safari?

If you are receiving an “Error 500 – Internal Server Error” message while trying to log into Canvas, you will need to clear the cookies on your web browser to resolve this issue.


1 Answers

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.

like image 158
Kev Avatar answered Sep 24 '22 03:09

Kev