web.config问题 [英] web.config problem

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

问题描述

如果我从应用程序中删除web.config,将会发生什么.如果删除了web.config,将无法执行什么操作.

what will happen if i remove web.config from my application. what action is not possible to perform if web.config is removed.

推荐答案

,如果没有进行Web配置,也可以运行我们的程序. Web config的主要用途是v可以维护DBconnection,文件路径,会话,错误处理安全性.
without web config also v can run our program..
main use of web config is v can maintain DBconnection ,file path,session ,error handling security.


因为默认情况下MACHINE.CONFIG文件下的所有配置设置都是可用的应用于所有asp.net应用程序.安装.net框架后,将自动加载MACHINE.CONFIG文件.

就像如果我们没有定义web.config一样,应用程序将从machine.config中获取设置.如果您为每个正在运行的应用程序定义web.config,则machine.config设置会被web.config覆盖.

在2005年的VS中,当我们尝试首次运行任何应用程序时,2005 VS会警告我们要运行没有web.config文件的应用程序.
Because all the configuration settings will be available under MACHINE.CONFIG file by default these settings will be applied to all asp.net applications. The MACHINE.CONFIG file will be automitacally loaded when .net framework is installed.

it is something like if we had not defined the web.config the application will take the settings from the machine.config. the machine.config settings are overide by the web.config if u define the web.config for each running application.

In 2005 The VS When we trying to run first time any application the 2005 VS gives us warning that want to run application without web.config file.


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

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