CryptographicException is thrown on new MailMessage()
<p>I have the following code in an ASP.NET site</p>

<pre><code>using (MailMessage mailMessage = new MailMessage())
{
    ...
}
</code></pre>

<p>throws System.Security.Cryptography.CryptographicException: The handle is invalid. exception.</p>

<p>The SMTP setting in my web.config file is:</p>

<pre><code>&lt;system.net&gt;
&lt;mailSettings&gt;
  &lt;smtp deliveryMethod="Network" from="myaccount@gmail.com"&gt;
    &lt;network host="smtp.gmail.com" defaultCredentials="false" enableSsl="true" port="587" userName="myaccount@gmail.com" password="mypass" /&gt;
  &lt;/smtp&gt;
&lt;/mailSettings&gt;
</code></pre>

<p></p>

<p>This was working yesterday. The exception started to thrown today - after I upgraded to VS 2012.</p>

<p>Anyone has seen this before?</p>
