----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Swapnil_B1 Message 1 in Discussion MMC Administration Tool - ASP.NET 2.0 One new, important feature in ASP.NET 2.0 is the ability to read/edit the configuration files in local machine or remote machine. In ASP.NET 1.x, editing of the configuration files was not supported. Only option to edit a configuration file is to treat the configuration file as an xml file and update that xml file. The major drawback in this method is that you need to treat all the sections in the configuration file as XML Node, which is not strongly typed. Hence, you can do only string manipulation to update any configuration settings in that file. However, in ASP.NET 2.0 you have strongly typed APIs to read/edit the configuration files. This article series describes the various options available in ASP.NET 2.0 to read/edit the configuration files. The various options available to read/edit the configuration files are 1) Using ASP.NET Microsoft Management Console(MMC) 2) Using Web Site Administration Tool 3) Using Configuration APIsIn the first part of this article, I have explained about Using ASP.NET Microsoft Management Console (MMC) In ASP.NET 2.0, you can manage configuration file from IIS itself i.e. the configuration management API is integrated with IIS itself. This feature is available as Microsoft Management Console (MMC), which can be accessed from the properties settings of any website in. Using this console, administrator can modify both machine.config file and web.config file. A new ASP.NET tab is included in the IIS site properties window, In this tab, you can specify the version of asp.net for that web application. In previous release, if you want to change the aspnet.version for a web application, you need to use command line utility aspnet_regiis, which comes with .NET Framework. Now you can do this from IIS itself. If you want to edit machine.config, you can press Edit machine.config file button. Similarly, if you want to edit web.config file, you can press edit configuration. Both this button will invoke a separate window, which has option for editing various sections in config file as mentioned below. 1) General Tab which contains the list of all the connection Strings with facility to Manage and add new. It also contains the App Settings section and displays both the Key and value. 2) Custom Error Tab Custom Error Mode Remote Only, On, and Off option. Default redirect URL property with List of Inherited Custom errors and Local errors. 3) Authorization Tab Contains the various Inherited and Local Authorization roles with Allow / Deny options. 4) Authentication Contains the properties to set the Authentication Mode and Cookie information in case of Forms Authentication. Also contains the Provider section to Configure Membership Providers and Role Providers. 5) Application Tab Contains Common compilation, page and runtime settings like default language, default theme etc. Contains Globalization settings like encoding request and response information and identity settings. 6) State Management Tab Contains the Session state settings like session mode, cookieless mode and SQL server settings in case of SQLServer session mode. 7) Locations Tab- contains the list of Locations and allow to add and manage the locations One of the much requested feature in.Net Framework 1.1 is to update the config file programmatically which has been included in .NET 2.0 as Configuration class. Other then Configuration class, now you have an option to edit the configuration file using MMC snap in and a web admin page. Even you can customize this web admin page for your application. With all these options, configuration is made simpler in .Net Framework 2.0. Swapnil (Swaps) http://swapsnet.spaces.live.com/ ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]