我们可以运行没有web.config文件的Web应用程序吗? [英] Can we run a Web application without web.config file?

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

问题描述

我们可以在没有web.config文件的情况下运行Web应用程序吗?

解决方案

Google已损坏?



结果 [ ^ ]


是的,我们可以在没有WEB.CONFIG文件的情况下运行asp.net应用程序。 

如果我们没有在 WEB.CONFIG文件中设置任何配置那么它将采用MACHINE.CONFIG文件 for 默认配置。当您的应用程序执行时,此配置文件将自动安装

即MACHINE.CONFIG文件包含所有asp.net Web应用程序的默认设置

因为所有配置设置都可以在MACHINE.CONFIG文件下通过默认获得,所以这些设置将应用于所有asp.net应用程序。

注意:
Web应用程序在没有web.config但没有调试模式的情况下运行
2005 VS时我们试图第一次运行任何应用程序 2005 VS给我们警告,希望在没有web.config文件的情况下运行应用程序。
安装
.net framework 时,MACHINE.CONFIG文件将自动加载


Can we run a Web application without web.config file?

解决方案

Google broken?

results[^]


Yes, we can run an asp.net application without the WEB.CONFIG file. 

If we are not setting any configuration in WEB.CONFIG file then it will take MACHINE.CONFIG file for default configurations. This config file will automatically installed when your application getting executed. 

i.e MACHINE.CONFIG file contains defaults settings for all the asp.net web applications.

Because all the configuration settings will be available under MACHINE.CONFIG file by default these settings will be applied to all asp.net applications. 

Note:
Web application run without web.config but the run without debugging mode 
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.
The MACHINE.CONFIG file will be automatically loaded when .net framework is installed.  


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

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