System.net mailSettings Encryption

Discussion in 'Windows / IIS' started by cloudspring, Jul 7, 2010.

  1. Hello,

    I have setup a form using VS 2010, hosted Windows Server 2008/IIS7, ASP.NET v4. It works perfectly. I have encrypted the web.config file using RSA. When I submit the form I get the error:

    Parser Error Message: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: Bad Data.


    Source Error:



    Line 15: <mailSettings>
    Line 16: <smtp configProtectionProvider="RsaProtectedConfigurationProvider">
    Line 17: <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
    Line 18: xmlns="http://www.w3.org/2001/04/xmlenc#">
    Line 19: <EncryptionMethod Algorithm="http://www.w3.org/

    For whatever reason, it does not like line 17. I posted on the ASP.net website as well. I have followed the KB article from DASP on exporting the RSA keys and had them install on the web server.

    I need help please! :mad:

    Thank you in advance.

    Jim
     

Share This Page