您现在的位置:龙卷风首页 ›› 网络编程 ›› 阅读文章

ProductMaintenance.exe.config 加密数据库连接信息

Enterprise Library 快速上手教程中的错漏纠正。

在Enterprise Library的快速上手教程中,关于DataAccess(c#)的最后一个例子,是加密配置文件中的数据库链接信息。

教程中写道:Open the ProductMaintenance.exe.config file in the project bin\Debug directory located here. Note the connection strings are encrypted.

意即配置文件:ProductMaintenance.exe.config中的数据库链接信息,已经被加密。其实不然。被加密的文件时ProductMaintenance.vshost.exe.config文件。当然,如果你要发布,把原有的ProductMaintenance.exe.config这个文件删除,把ProductMaintenance.vshost.exe.config文件的名称改成响应的名称即可。这就是已经加密过的配置文件了。

作者 不见不散 本文仅代表作者观点,与龙卷风资讯网立场无关。

我来说两句

内容/Content