Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to encrypt config file ? desktop .NET
    text
    copied!<p>Please give me a working example. I have already created a topic, but I'm not there who are not helped <a href="https://stackoverflow.com/questions/4330122/how-to-encrypt-app-config">How to encrypt app.config?</a>. Or am I just not what is not understood. Once again, I beg you give 100% working example.</p> <p>I need to encrypt connectString to access the DB mysql.</p> <p>is an example <a href="http://www.c-sharpcorner.com/UploadFile/yougerthen/306132008064100AM/3.aspx" rel="nofollow noreferrer">http://www.c-sharpcorner.com/UploadFile/yougerthen/306132008064100AM/3.aspx</a>. There are two ways the first I have an error. Second, I do not understand how to use</p> <p>Do not write a lot of text, I do not understand very well. I'm Russian.</p> <p><strong>UPDATE:</strong> I decided to use <a href="http://msdn.microsoft.com/en-us/library/system.configuration.rsaprotectedconfigurationprovider.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.configuration.rsaprotectedconfigurationprovider.aspx</a>.</p> <p>But I have an error: "Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedConfigurationProvider'. The error message from the provider: The object already exists."</p> <p>I Create App WPF. Append file app.config.</p> <p>app.config body:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;/configSections&gt; &lt;connectionStrings&gt; &lt;add name="myconnect" connectionString="myConnectString" /&gt; &lt;/connectionStrings&gt; &lt;/configuration&gt; </code></pre> <p>What do I do next ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload