Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can we run a Web application without web.config file?
Posted
Updated 27-Feb-18 22:38pm

Google broken?

results[^]
 
Share this answer
 
C#
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.  
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900