How to regenerate web.config + Seeking tips and info on web.config!
-
Oh my! I broke my web.config by trying out WSE 3.0. For some reason WSE applied its information into the wrong sections of my web app. At this point, I can either 1) Try to go back to a previous version of the web.config saved in SourceSafe. 2) Try to get a better understanding of what web.config does, and I mean the nitty gritty details here. 3) If such a thing exists, it would be nice to regenerate the web.config file! I've googled a few pages about web.config yet nothing out there satisfies my deep thirst for understanding web.config. So any info regarding what *exactly* the role(s) of web.config is(are) would be greatly appreciated. From what I'm able to see, the file is a repository of anything and everything, a sort of Registry but without a logical classification system. Your suggestions, insights and informations are more then welcome! Geoffrey
-
Oh my! I broke my web.config by trying out WSE 3.0. For some reason WSE applied its information into the wrong sections of my web app. At this point, I can either 1) Try to go back to a previous version of the web.config saved in SourceSafe. 2) Try to get a better understanding of what web.config does, and I mean the nitty gritty details here. 3) If such a thing exists, it would be nice to regenerate the web.config file! I've googled a few pages about web.config yet nothing out there satisfies my deep thirst for understanding web.config. So any info regarding what *exactly* the role(s) of web.config is(are) would be greatly appreciated. From what I'm able to see, the file is a repository of anything and everything, a sort of Registry but without a logical classification system. Your suggestions, insights and informations are more then welcome! Geoffrey
On the safer side i would suggest to take latest from VSS and recover your web.config. However i would recommand you to grasp thorough understanding of Web.config. It is must if you are into web delopment with asp.net. Internet is the perfact repository for finding information. At the moment i would just say that Web.Config is an organized configuration file which manages your settings and configration on differenct area of web site development. Following list tells you about different section of configuration file. - AppSettings : Handles custom settings in the form of name and value pair. - SessionState: Session related settings. - ConnectionStrings: An organized place for putting connection strings. - CustomErrors: Centralized error manangement settings. - Trace: Centralized location for application tracing. - Providers: Different provider related settings like MembershipProvider, RolesProvider etc.... - Configuration and ConfigurationSection : Allow creating custom application specific settings.... - Etc... One more thing ============== If you install .Net 2.0, IIS gives you a UI for editing web.config file. Hope this much information if okay for you to get started with the Web.Config
M Aamir Maniar aamirOnline.com