十堰seo优化分析,西安优化官网公司,创意设计工作室,抖音代运营协议模板步骤1#xff1a;创建加密命令
使用ASP.NET提供的命令工具aspnet_regiis来创建加密命令。
1、打开控制台窗口#xff0c;在命令行中输入以下命令#xff1a; cd C:\Windows\Microsoft.NET\Framework\v4.xxxxx
aspnet_regiis.exe -pef connectionStrings C:\MyAppFo…步骤1创建加密命令
使用ASP.NET提供的命令工具aspnet_regiis来创建加密命令。
1、打开控制台窗口在命令行中输入以下命令 cd C:\Windows\Microsoft.NET\Framework\v4.xxxxx
aspnet_regiis.exe -pef connectionStrings C:\MyAppFolder -prov DataProtectionConfigurationProvider 这个命令将加密App.config文件中的connectionStrings设置。C:\MyAppFolder是应用程序的根目录。
2、打开控制台窗口在命令行中输入以下命令 cd C:\Windows\Microsoft.NET\Framework\v4.xxxxx
aspnet_regiis.exe -pef appSettings C:\MyAppFolder -prov DataProtectionConfigurationProvider 这个命令将会加密Web.config文件中的appSettings设置。 步骤2解密加密的配置节 如果需要编辑加密的配置节可以使用aspnet_regiis提供的解密命令。
1、打开控制台窗口在命令行中输入以下命令
cd C:\Windows\Microsoft.NET\Framework\v4.xxxxx
aspnet_regiis.exe -pdf connectionStrings C:\MyAppFolder
这个命令将解密App.config文件中的connectionStrings设置。C:\MyAppFolder是应用程序的根目录。
2、打开控制台窗口在命令行中输入以下命令
cd C:\Windows\Microsoft.NET\Framework\v4.xxxxx
aspnet_regiis.exe -pdf appSettings C:\MyAppFolder
这个命令将会解密Web.config文件中的appSettings设置。
示例