且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IIS HTTP错误500.19

更新时间:2023-12-05 14:52:22

这个问题花了我一天中***的部分要弄清楚,因为我有完全相同的code在办公室另一台机器上工作。

This issue took me the best part of a day to figure out, as I had the exact same code working on another machine in the office.

原来,我错过了在IIS中的一些功能,并且在web.config我抬下来一直在寻找这些功能。我错过了这两种身份验证功能和URL重写模块,并因此IIS相信我的web.config的格式不正确。

It turns out that I was missing some features in IIS, and that the web.config I had carried down was looking for these features. I was missing both authentication features and the URL Rewrite module, and as a result IIS believed my web.config was malformed.

有在互联网中提到的URL重写模块类似的答案,所以我想看看那里第一次。

There are similar answers across the Internet that mention the URL Rewrite module, so I'd look there first.