多个web.config文件 [英] More than one web.config file

查看:79
本文介绍了多个web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是Asp.Net的新手,并且对web.config文件感到困惑,单个Web应用程序可以有多个web.config文件吗?如果是这样,那么我们可以把它们放在哪里以及它们将如何工作,意味着它对应用程序的影响是什么?应用程序启动时会发生哪个文件设置?

请帮助我...任何建议和帮助都会受到影响。

谢谢高级。

Hi all,
I am new with Asp.Net and bit confused with web.config file, Can there be more than one web.config file for single web application? If so, then where we can put them and how will they work , means what would be it''s impact on application? which file''s setting will take place when the application starts?

Pls help me ... Any suggetions and help will be appriciated .
Thanks in Advance.

推荐答案

对于Asp.net应用程序,您只有一个web.config文件。

并且它存储配置设置需要整个应用程序。这些设置可用于基于XML的标记。据我所知,你可以存储
For a Asp.net application there you have Only one web.config file.
and It stores the configuration settings that requires to the entire application. These settings available with XML based tags. To the best of my knowledge you can store

  1. 数据库连接
  2. 会话状态
  3. 错误处理
  4. 安全性

与web.config文件中的标签相关的数据。


[PS我不是asp.net专家]

Related data with the tags in web.config file.

[P.S. I''m not a asp.net expert]



大家好,

我是Asp的新手.Net与web.config文件有点混淆,单个Web应用程序可以有多个web.config文件吗?如果是这样,那么我们可以把它们放在哪里以及它们将如何工作,意味着它对应用程序的影响是什么?应用程序启动时会发生哪个文件设置?

请帮助我...任何建议和帮助都会受到影响。

谢谢预先。
Hi all,
I am new with Asp.Net and bit confused with web.config file, Can there be more than one web.config file for single web application? If so, then where we can put them and how will they work , means what would be it''s impact on application? which file''s setting will take place when the application starts?

Pls help me ... Any suggetions and help will be appriciated .
Thanks in Advance.



no .....你不能在一个解决方案中拥有多个web.config文件.........

no..... you cannot have more than one web.config file in one solution.........


你好,

我非常感谢你的努力,但是如果有一个文件夹的应用程序,例如默认页面保存在默认文件夹下,那么客户的页面就会保留在客户的下方文件夹和计费页面保存在记帐文件夹下,现在是否可以在上面的每个文件夹中都有web.config文件?然后,如果它会产生什么影响?

目录层次结构将如下所示 -
Hello there,
I really thankfull to you for your efforts , but if an application having some folder ,e.g default page is kept under default folder, pages of customer are kept under the customer folder , and billing pages are kept under billing folder,now is it possible to have web.config file in each of above folder ? And if it''s then what will be the effect?
directory hierachy will be look like this -
Website1


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

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