可以在ASP.NET Web应用程序运行不web.config中 [英] Can an ASP.NET web app run without web.config

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

问题描述

可我的asp.net web应用程序运行没有一个web.config?
为了便于讨论让说,我不是连接到数据库或明确读取任何
配置信息。
我已经尝试过了,我能在VS 2008中成功运行Web应用程序没有web.config文件。

Can my asp.net web application run without a web.config? For argument's sake lets say that I'm not connecting to a Database or explicitly reading any configuration information . I have tried it out and I'm able to run a web app successfully in VS 2008 without a web.config.

这使我想到了一个问题,如何现在配置的认证和会话模式?
在machine.config和根web.config文件(框架文件夹中)没有明确配置的任何认证/会话模式。

This brings me to the question as to how are authentication and session modes configured now ? The machine.config and the root web.config files ( in the framework folder) do not have any authentication/session modes configured explicitly .

任何想法?

感谢。

推荐答案

您不得不看的文档看到默认值,这对于认证可能是窗户,会话模式将是过程。

You'd have to read the documentation to see the defaults, which for authentication is probably windows, and session mode would be in process.

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

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