This is quite strange. I have a piece of code running on my server that emits XML to the browser. When I use my dev box to access the page I get a “500 Internal Server Error” page. After numerous diagnostic attempts, I RDPed into my server and tried to use its internal web browser. I was able to see the xml document fine. In know this has nothing to do with my dev browser because I tried both FF and IE and they were able to view the same XML from a mirror server. This leads me to believe it may be some kind of IIS 7 issue. Can any one here help?
Share
I found the answer to my question. It turns out that I am running Windows 2008 R2 and its version of IIS has a error pages section. By default, the error responses are set to “Detailed error for local requests and custom error pages for remote requests.” This was the reason I couldn’t see the xml document remotely. I switched the setting to “Detailed errors” and it solved the problem.
You can learn more about this here:
IIS7 – Enabling Custom Error Pages