none
加密web.config连接字符串时出错 RRS feed

  • 问题

  • 使用如下代码加密 web.config连接字符串:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pef appSettings D:\网站根目录 

    出现错误:Encrypting configuration section...

    An error occurred executing the configuration section handler for appSettings.

     

    Failed to encrypt the section 'appSettings' using provider 'RsaProtectedConfigur

    ationProvider'. Error message from the provider: The RSA key container could not

     be opened.

    Failed!

    2011年5月12日 12:06

答案