我创建了一个Handler,如果我在<system.web>
中添加处理程序,它对IIS 6.0可以正常工作,但不能在IIS 7.0上工作,如果我在<system.webServer>
中添加了副本Versa。是否有任何共同的事情,我可以这样做,它应该两个web.config system.webServer Vs system.web
1
A
回答
1
工作只是与马丁的评论或http://arcware.net/2008/04/08/use-a-single-web-config-for-iis6-and-iis7/
去注意:上面的链接无法正常工作。他看起来像他的旧博客帖子,但仍可以访问页面via the wayback machine。
+1
如果您添加'存档'子域名,链接工作正常。更简单的选择是使用Martin使用的相同URL:http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/。 – Sam 2013-05-23 06:30:27
相关问题
- 1. 的System.Web configSection和system.webServer
- 2. Web.config system.webserver错误
- 3. 无法识别的配置节system.web/system.webServer
- 4. 的web.config <system.webServer>错误
- 5. 是否可以在system.webserver中的system.web中配置所有东西?
- 6. UltiDev Cassini和<system.webServer> web.config设置
- 7. 运行时访问web.config system.webServer/webSocket部分
- 8. 为什么IIS Express使用<system.web>而不是<system.webServer>?
- 9. Azure授权vs owin和web.config
- 10. 检索的web.config的System.Web部分
- 11. nhibernate.config vs web.config
- 12. Settings.Designer.cs vs Web.config
- 13. system.webserver的设置有时会从web.config文件中删除
- 14. 的system.webServer /安全/在我的IIS 7的web.config授权不工作
- 15. VS 2010 web.config转换
- 16. VS 2010:<system.web><compilation debug =“false”/></system.web> for non-web-apps?
- 17. C#WCF的web.config
- 18. 什么是Web.Config的System.Web部分中的AllowLocation =“true”?
- 19. system.webServer /重写 - > URL重写
- 20. IIS忽略system.webServer staticContent部分
- 21. 如何仅使用<system.webServer>为新的MVC3/Azure项目保留干净的ASP.NET web.config文件?
- 22. VS 2010 web.config如何工作?
- 23. enableClientBasedCulture VS在web.config中文化
- 24. Web.config未被读取(VS 2010)?
- 25. VS.中的Web.Config转换
- 26. web.config,web.debug.config,web.release.config&Publish vs Debug?
- 27. <rewrite>不是<system.web>的有效子女?
- 28. 如何检查System.webServer/Security/requestFiltering部分是否以编程方式存在?
- 29. web.config设置工作不超过1 GB
- 30. 检索“system.webServer/security/authorization”配置与Microsoft.Web.Administration API
[和?之间的区别是什么?](http://stackoverflow.com/questions/355261/whats-the-difference-between-system-web-and-system-webserver ) –
2011-03-02 09:09:28
这个链接可能会帮助你:http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/为了给你一个真实的答案,我们需要更多的信息,比如哪个例外得到等 – 2011-03-02 09:10:54