Failed To Decrypt Using Provider Rsaprotectedconfigurationprovider Error
Contents |
here for a quick failed to decrypt using provider 27 rsaprotectedconfigurationprovider 27 overview of the site Help Center Detailed answers to failed to decrypt using provider 'rsaprotectedconfigurationprovider' bad data any questions you might have Meta Discuss the workings and policies of failed to decrypt using provider error message from the provider bad data this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with failed to decrypt using provider 'dataprotectionconfigurationprovider' us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Failed
Failed To Decrypt Using Provider 'dataprotectionconfigurationprovider' App Config
to decrypt using provider 'RsaProtectedConfigurationProvider' up vote 5 down vote favorite 2 In my application, that connecting to MS Sql database, I am using Microsoft.Data.ConnectionUI And my application work in my computer. If i run this application in another computer, when i open connection dialog, i see that error: That is my code for this: try { connectionString = ShowDialogConnection(); SqlConnection connect = new SqlConnection(connectionString); connect.Open(); backgroundWorker1.RunWorkerAsync(); } catch (Exception exc) { MessageBox.Show(exc.ToString()); } string ShowDialogConnection() { string conn = ""; DataConnectionDialog dlg = new DataConnectionDialog(); DataSource.AddStandardDataSources(dlg); dlg.SelectedDataSource = DataSource.SqlDataSource; dlg.SelectedDataProvider = DataProvider.SqlDataProvider; if (ConfigurationManager.ConnectionStrings["ConStr"] != null) { dlg.ConnectionString = ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString; } if (DataConnectionDialog.Show(dlg) == DialogResult.OK) { if (dlg.ConnectionString != null && dlg.ConnectionString != "") { conn = dlg.ConnectionString; Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); ConnectionStringsSection csSectio
files using protected configuration ★★★★★★★★★★★★★★★ MohamedNovember 17, 200542
Error Message From The Provider: The Rsa Key Container Could Not Be Opened.
0 0 0 One of the cool security features in failed to decrypt using provider 'rsaprotectedconfigurationprovider'. error message from the ASP.NET 2.0 is the ability to parts of web.config. Web.config encryption uses XML encryption standards at export the rsa key container its core. Protected configuration uses a class derived from the abstract class ProtectedConfigurationProvider. .NET framework has http://stackoverflow.com/questions/16187369/failed-to-decrypt-using-provider-rsaprotectedconfigurationprovider shipped with two providers RSAProtectedConfigurationProvider which uses TripleDES and RSA encryption and DPAPIProtectedConfigurationProvider which uses Windows Data Protection API (DPAPI) For more comprehensive information about this topic, please refer to MSDN Protected configuration in action: One of the most common uses of the protected configuration is to encrypt https://blogs.msdn.microsoft.com/mosharaf/2005/11/17/encrypting-configuration-files-using-protected-configuration/ connection strings in web.confg (that's one of the reasons for creating a separate tag for connection strings instead of adding it in appSettings tag). Let's say we have a connection string tag like this