IIS7.5 500 – Internal Server Error. No Detail

asp.netiis-7

I have a 32bit windows 2008 server, with IIS7.

have loaded up my .net4.0 web app and all i get is the grey screen with…

500 – Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

No matter what i do, it will not show error details. customErrors="off" doesnt make any differece, there is nothing in the iis logs, nor can i find anything in event viewer.

i thought asp.net 4.0 was broken, but i tried uploading a plain asp.net 2.0 app to the same website, changing the app pool version to v2, and that gave the same error.

why on earth is it so difficult to get any information from iis7 in this situation? i dont even get the blue/white/red error details.

all other websites on the server are working fine (a variety of .net 2, 3, 3.5 and v4 apps)

i added elmah to my app, and that gives the same mystical error.

No Dice.

Best Answer

I couldnt browse it locally by default (probably the firewall) - i had to wire a mock domain in using the hosts file and looping it back to the IP the site was bound to.

this then gave me the full error details which was insufficient permissions on web.config.

so, the reason why it couldnt show the detail is because it couldnt even read the web.config to read my instruction of 'show me the error details' (customErrors="off")