简体   繁体   English

web.config system.webServer与system.web

[英]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.

相关问题 如何从web.config system.web和system.webServer读取Ihttpmodule - how to Read Ihttpmodule from web.config system.web and system.webServer 重写如何在web.config system.webserver中工作 - How does the rewrite works in web.config system.webserver 如何以编程方式更改web.config中的system.webServer / defaultDocument - How to change system.webServer/defaultDocument in web.config programmatically <system.web>和<system.webServer>之间的区别? - Difference between <system.web> and <system.webServer>? 为什么IIS Express使用 <system.web> 并不是 <system.webServer> ? - Why is IIS Express using <system.web> and not <system.webServer>? 如果指定路径上存在文件,则会忽略web.Config中system.webServer中的处理程序 - Handler in system.webServer in web.Config is ignored if a file exist at the path specified web.config iis7.0集成system.webserver处理程序和模块 - web.config iis7.0 integrated system.webserver handlers and modules web.config 继承:<clear/> 导致 XML 解析错误<system.webServer><modules> - web.config inheritance: <clear/> causes XML Parsing Error in <system.webServer><modules> 需要有关system.webServer重写规则的正则表达式设计的帮助。 - Need help for regex design in system.webServer rewrite rule in web.config 我的IIS 7 web.config中的system.webServer / security / authorization无法正常工作 - The system.webServer/security/authorization in my IIS 7 web.config is not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM