如何解决有2个web.config文件? [英] how solve having 2 web.config file?
本文介绍了如何解决有2个web.config文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该如何解决此错误?
我有一个包含2个文件夹的解决方案,每个文件夹分别具有一个web.config文件和一个适用于所有解决方案的web.config.
我猜这个错误与2个web.config文件有关,但是我可以解决吗?
错误5使用超出应用程序级别注册为allowDefinition ="MachineToApplication''的节是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的.
解决方案
是的,上述错误是因为有多个Web.Config文件用于根文件夹中的应用程序.
在这里查看如何具有多个Web.Config文件:
在asp.net应用程序中使用多个web.config文件. [ ^ ]
^ ]
Web.config文件-ASP.NET [ 解决方案
Yes, the above error is because of having multiple Web.Config file for an application in the root folder.
Look here on how to have multiple Web.Config files:
Working with more then one web.config files in asp.net application. [^]
10 Things ASP.NET Developers Should Know About Web.config Inheritance and Overrides[^]
Web.config File - ASP.NET[^]
这篇关于如何解决有2个web.config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文