Web.Config encryption using RsaProtectedConfigurationProvider - “Bad Data” error

前端 未结 7 1837
执笔经年
执笔经年 2021-02-13 02:46

I am attempting to encrypt connection string values in the Web.Config file for an ASP.NET 2.0 web application, following the procedure described on MSDN. Using the RsaProtectedC

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-13 03:40

    Encrpyting is very case sensitive as mahdi said. I have used in my pc and taken it to the sever I had a problem the problem was from the RSA machine key containers that are stored in my PC folder OR directory. and If you want to know where the correction may be started before making any change, Just start from

    \Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys.
    

    For info, kindly reffer to this link which might be a helpful....

    http://msdn.microsoft.com/en-us/library/ms998283.aspx

提交回复
热议问题