给web.config节点加密

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis.exe -pef "connectionStrings" "E:/mywork/vs2005/PetShop/Web"  加密


C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis.exe -pdf "connectionStrings" "E:/mywork/vs2005/PetShop/Web"  解密

 

加密后确保有权限访问

cd /WINDOWS/Microsoft.Net/Framework/v2.0.*

aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT AUTHORITY/NETWORK SERVICE"

 

你可能感兴趣的:(ASP.NET技术)