Can an ASP.NET web application work without web.config

Can my asp.net web application work without web.config? For argumentation, let's say that I am not connecting to the database or explicitly not reading any configuration information. I tried this and I can successfully launch a web application in VS 2008 without web.config.

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

Any ideas?

Thank.

+6
source share
3 answers

, , , , , .

+2

, asp.net web.config, - web.config, machine.config. , .

MACHINE.CONFIG , asp.net.

+3

, ASP.NET WEB.CONFIG .

If the application does not find the WEB.CONFIG file in its root folder, then for default configurations it will accept the MACHINE.CONFIG file . But you cannot debug the application, since debugging is disabled by default in the MACHINE.CONFIG file.

More information on machine.config files can be found here.

0
source

All Articles