The Configuration API in .NET 2.0
2009-09-17 23:39
260 查看
在操作.NET应用程序的配置文件时候, 大家是否碰到下面的情况了:
1. 忘记了如何制作自定义Configuration Section
2. 配置文件太大, 希望把部分配置信息抽出来放到单独的文件中
3. 加密配置文件中的敏感信息, 比如数据连接字符串, Web Service的用户名和密码
遇到上面的情况, 大家可以参考下面的几篇文章:
1. ConfigurationSection Class – MSDN .NET 2.0以后, 自定义的Configuration Section都继承此类, MSDN这篇文章对如何实现自定义的Configuration Section介绍的很详细
2. The Configuration API in .NET 2.0 对ASP.NET程序中如何操作Web.config介绍的很全, 不过我喜欢用ConfigurationManager去操作Web.config, 而不是用WebConfigurationManager.
3. Encrypting and Decrypting Configuration Sections - MSDN 介绍如何使用aspnet_regiis.exe这个工具加密配置文件.
1. 忘记了如何制作自定义Configuration Section
2. 配置文件太大, 希望把部分配置信息抽出来放到单独的文件中
3. 加密配置文件中的敏感信息, 比如数据连接字符串, Web Service的用户名和密码
遇到上面的情况, 大家可以参考下面的几篇文章:
1. ConfigurationSection Class – MSDN .NET 2.0以后, 自定义的Configuration Section都继承此类, MSDN这篇文章对如何实现自定义的Configuration Section介绍的很详细
2. The Configuration API in .NET 2.0 对ASP.NET程序中如何操作Web.config介绍的很全, 不过我喜欢用ConfigurationManager去操作Web.config, 而不是用WebConfigurationManager.
3. Encrypting and Decrypting Configuration Sections - MSDN 介绍如何使用aspnet_regiis.exe这个工具加密配置文件.
相关文章推荐
- Creating Custom Configuration Sections in Web.config Using .NET 2.0's Configuration API
- What's New in the .NET Framework 2.0 Beta
- Understanding the Session Object in ASP.NET 2.0
- [翻译]Accessing and Updating Data in ASP.NET 2.0: Examining the Data Source Control's Events
- Unhandled exceptions cause ASP.NET-based applications to unexpectedly quit in the .NET Framework 2.0
- The way of using SqlCacheDependency in .net 2.0
- How to Pop Open an image window that resizes to fit the image in ASP.net 1.x and 2.0 Beta 1
- Adding the Test API in The ASP.NET Web API Help Page
- 4 ways to send a PDF file to the IE Client in ASP.NET 2.0
- Configuration Model in .Net 2.0
- 设置页面的默认焦点控件和默认接受事件控件How Do I Set the DefaultFocus or DefaultButton in a Page Based on a Master Page in ASP.NET 2.0
- Creating Custom Configuration Sections in Web.config Using .NET 2.0's Configuration API
- Accessing the ASP.NET Web Configuration Tool in Visual Studio 2013
- Dynamically Setting the Page's Title in ASP.NET 2.0 or By SiteMap
- What's New in the .NET Framework Version 2.0
- What's New in the .NET Framework 2.0 Beta
- [转载]Encrypting Configuration Information in ASP.NET 2.0 Applications
- How To: Encrypt Configuration Sections in ASP.NET 2.0 Using RSA
- Using the ASP.NET 2.0 ReportViewer in Local Mode
- Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download !