Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

IIS 7.5 on Windows 2008 R2 x64, Classic mode. In ASP.NET 3.5 apps, IIS is concatenating the default error pages (e.g. inetpub\custerr\en-US\500.htm) with my own custom error pages (as defined in web.config, section customErrors). It first displays the default one, then my custom page, in the same response.

Obviously, I only want my own custom error pages to show up. How do I prevent IIS from using the default pages? How is it even possible that the two pages are mixed?

share|improve this question

1 Answer 1

I solved a similar problem with:

<system.webServer>
    <httpErrors existingResponse="PassThrough" />
</system.webServer>
share|improve this answer
    
tried, didn't work :( –  Mauricio Scheffer Oct 25 '11 at 12:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.