开发者

IIS 7 gives me error 500 internal server error when trying to display my XML document

开发者 https://www.devze.com 2023-02-09 10:31 出处:网络
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 diag

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 kin开发者_如何学编程d of IIS 7 issue. Can any one here help?


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


Just for reference, I had the same problem, and the issue what that the local folder had caching of XML files turned on, but at the same time the entire web server had XML caching turned on.

Try opening the 'Output Caching' module for the folder in question from within IIS. If you get an error, simply edit the local web.config file and remove the 'double' file extension cache setting.

0

精彩评论

暂无评论...
验证码 换一张
取 消