Can we run asp.net application without WEB.CONFIG file ?

 Posted by Akiii on 6/8/2011 | Category: ASP.NET Interview questions | Views: 16852 | Points: 40
Answer:

Yes, we can run an asp.net application without the WEB.CONFIG file. It means that the default configuration will be loaded from MACHINE.CONFIG file.


Source: www.geekinterview.com | Asked In: Some interviews | Alert Moderator 

Comments or Responses

Posted by: Susanthampy on: 6/9/2011 | Points: 10
Good question
Posted by: Akiii on: 6/9/2011 | Points: 10
Thanks susan....
I hope i can get more information regarding this topic...

Regards
Akiii
Posted by: Susanthampy on: 6/9/2011 | Points: 10
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 appln
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 beb.config file.
Posted by: Akiii on: 6/9/2011 | Points: 10
Thanks for the information....

As this is an interview question...so we will not discuss the details here....
I am posing a topic in the "ask a question" forum....

Please post your information there...

As always thanks for ur support...
Regards
Akiii

Login to post response