[英]web.config system.webServer Vs system.web
I created a Handler if I add Handler in <system.web>
it works fine for IIS 6.0 but doesn't work on IIS 7.0, and Vice Versa if I add in <system.webServer>
. 如果在
<system.web>
添加处理程序,则创建了一个处理程序,它在IIS 6.0上运行良好,但在IIS 7.0上不起作用,反之,在<system.webServer>
添加了Versa。 Is there any thing common I can do so that it should work for both 有什么我能做的共同的事情,以便它应该为两个工作
Just go with Martin's comment or http://arcware.net/2008/04/08/use-a-single-web-config-for-iis6-and-iis7/ 只需听马丁(Martin)的评论或http://arcware.net/2008/04/08/use-a-single-web-config-for-iis6-and-iis7/
Note: The link above is not working. 注意:上面的链接不起作用。 Looks like he nuked all his old blog posts, but the page can still be accessed via the wayback machine .
看起来他已经删除了所有旧博客帖子,但是仍然可以通过Wayback Machine来访问该页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.