如何将两个Web配置文件更改为一个 [英] how can change two web config file into one
本文介绍了如何将两个Web配置文件更改为一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
经典ASP中的第一个项目具有Web配置文件,而ASP.NET中的第二个项目具有另一个Web配置文件.当我尝试上传到服务器时,显示Web配置文件重复.
解决方案
然后将它们加载到单独的文件夹或子域中.
例如(子域名):
www.project1.mydomain.com
和
www.project2.mydomain.com
在您的虚拟主机上查找mydomain.com,以了解如何创建子域-大多数可以.
或将它们保存在单独的文件夹中:
www.mydomain.com/project1
和
www.mydomain.com/project2然后,您将在每个文件夹中提供一个default.aspx文件(以及在根目录中选择要访问的文件).
first project in classic asp it have a web config file and second project in asp.net it have another web config file.When i try to upload to server then showing web config file duplication.
解决方案
Then load them to separate folders or subdomains.
For example (Subdomains):
www.project1.mydomain.com
and
www.project2.mydomain.com
Look at your webhost for mydomain.com to find out how to create subdomains - most can.
Or to keep them in separate folders:
www.mydomain.com/project1
and
www.mydomain.com/project2You would then provide a default.aspx file in each folder (as well as one in the root which selects which to go to).
这篇关于如何将两个Web配置文件更改为一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文