I haven\'t been able to find a similar problem anywhere. Basically when I set the site to custom errors it displays the default 500 error message, however when I then set it to
By default IIS7 intercepts HTTP status codes such as 4xx and 5xx generated by applications further up the pipeline.
In web.config replace the line
with