我可以为Web应用程序提供多少个web.config文件..? [英] How many web.config files i can have for a web application..?

查看:70
本文介绍了我可以为Web应用程序提供多少个web.config文件..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,我对我在上一次采访中遇到的问题和疑问表示怀疑,但我没有得到正确答案...



问: - Web应用程序中可以有多少个web.config文件.. ??



选项



1。一个

2.每个文件夹一个

3.两个

4.每个应用程序池一个。





请大家回复...



谢谢..

- JAGADiSH V.

hi friends i have doubt about a question and this question i have attended in my last interview but i m not getting correct answer for this...

Q :- How many web.config files can have in a web application..??

Options

1. One
2. One per folder
3. Two
4. One per application pool.


Please all put your replies..

thanks..
- JAGADiSH V.

推荐答案

第二个答案是正确的,但是,为什么不问谷歌呢? :)
Second answer is correct, but, why don''t you ask google about that ? :)


您可能在一个Asp.Net应用程序中有多个Web.Config文件,但每个文件夹只有一个。



请查看以下链接以获取更多信息。

http://weblogs.asp.net/jalpeshpvadgama/archive/2011/03/23/working-with-more-then-one- web-config-files-in-asp-net-application.aspx



应用程序池

虽然您的好奇心可能是真实的,但将此与Application-Pool相关联则无关紧要。可以在IIS中为一个/多个Web应用程序/站点分配/关联一个应用程序池。



请查看以下链接以获取有关此内容的更多信息。 />
申请表池工作(IIS 6.0)
You may have multiple Web.Config files in one Asp.Net Application, but only single per folder.

Have a look at below link for more information.
http://weblogs.asp.net/jalpeshpvadgama/archive/2011/03/23/working-with-more-then-one-web-config-files-in-asp-net-application.aspx

Application-Pool
Although your curiosity might be genuine, but it is irrelevant to associate this with Application-Pool. One Application-Pool can be assigned/associated with one/multiple Web Applications/Sites in IIS.

Have a look at below link for more information on this.
How Application Pools Work (IIS 6.0)


2。 Web.config文件是每个文件夹包含一个的配置文件。

这是在应用程序池中处理的文件
2. Web.config file is the configuration file this contain One per folder.
This is the file which handles in application pool


这篇关于我可以为Web应用程序提供多少个web.config文件..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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