正在使用卡西尼,但切换到IIS Express。我最初的想法是,我可以删除所有<system.web>
除之类的东西:为什么IIS Express使用<system.web>而不是<system.webServer>?
<authentication mode="Forms">
<forms loginUrl="/" />
</authentication>
我以前customErrors
都设置像这样:
<customErrors mode="On" defaultRedirect="/ServerError">
<error statusCode="404" redirect="/NotFound" />
</customErrors>
我删除了这个customErrors
元素,当我切换到IISExpress。现在404不再重定向到我很好的“NotFound”页面。
我的网站使用的AppPool是Clr4IntegratedAppPool
,它让我知道它没有使用Classic。
为什么IISExpress如此依赖于system.web
而IIS 7.5使用system.webServer
?
的Visual Studio版本至极您使用的是?这[问题](http://stackoverflow.com/questions/3748466/how-to-switch-iis-developer-express-to-classic-mode)可以帮助。 – coseguera 2012-03-03 03:11:22
2010在Windows 7 – 2012-03-03 05:03:12
这是有趣的,因为IIS EXpress是基于使用system.webserver的IIS7代码库 – 2012-03-03 05:07:56