假设我有2个web.config文件,然后将首先执行... [英] suppose i have 2 web.config file,then which will be executed first.....

查看:40
本文介绍了假设我有2个web.config文件,然后将首先执行...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
这个问题被问到我的一个朋友
问:假设我有2个web.config文件,然后将首先执行.....
可以帮忙...,

在此先感谢

Hi everyone,
This question was asked for one of my friends
Q: suppose i have 2 web.config file,then which will be executed first.....
can any1 help...,

Thanks in advance

推荐答案

在asp.net Web应用程序中可以有多个web.config文件.唯一的事情是,在根级别上可以有一个,在Web应用程序/站点的各个子文件夹中可以有一个.子文件夹配置文件中定义的配置将始终超过根配置.

浏览这篇文章:
使用多个Web.config文件 [ ^ ]

问候
Pawan
You can have multiple web.config files in an asp.net web application. The only thing is that there can be one at the root level and one each in various sub folders of the web application/site. The configurations defined in the sub folder config files will always overtake the root configurations.

Go through this article:
Working with more than one Web.config file[^]

Regards
Pawan


根目录中的那个将首先执行.

看看更多信息. ^ ]
The one which is in the root directory will execute first.

Have a look for more info. 10-things-asp-net-developers-should-know-about-web-config-inheritance-and-overrides.aspx[^]


这篇关于假设我有2个web.config文件,然后将首先执行...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆