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
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