Error message from the provider: The RSA key container could not be opened" Reply Igor says: October 18, 2006 at 8:08 am Great, finally an explanation. Should I reintall the ASPNet_regiis.exe? Browse other questions tagged c# .net sql-server or ask your own question. The Web.Config that is installed by ILS initially does not use encrypted connection details and will work for the Access database (even if you don't run Install.aspx). this contact form
But the ability to create custom scanning profiles a… Document Imaging Document Management OCR Images and Photos Photos / Graphics Software How a small business owner can reduce the cost of Select the Owner tab. sigh –Kane Jul 14 '09 at 2:56 1 Do you have anything in the machine.config that is overriding the values in your web.config? c# .net sql-server share|improve this question edited Apr 24 '13 at 9:04 Pandian 4,6332925 asked Apr 24 '13 at 8:42 EXTRAM 1621623 Can you translate for us the error
How much clearer are stars in earths orbit? The solution (found after much web searching and experimentation) is to take ownership of all the files in the directory containing RSA machine keys. Ensure the current owner of the directory is the Administrators group (you may not need to change this). Using this provider will also reduce the call to apsnet_Regiis -pa ….
I had was puzzled beyond 2 days by the problem:"Failed to decrypt using provider ‘RsaProtectedConfigurationProvider'. So the aspnet_regiis would be as following aspnet_regiis -pa "NetFrameworkConfigurationKey" "ASPNET" What if I'm using a server farm? The server is returning a "bad data" error when trying to decrypt the web.config. Failed To Decrypt Using Provider Error Message From The Provider The Parameter Is Incorrect C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT Authority\Network Service" Adding ACL for access to the RSA Key container...
How to describe sand flowing through an hourglass Mother Earth in Latin - Personification A Triangular Slice of Squared Pi How often do professors regret accepting particular graduate students (i.e., "bad Please, if someone has an idea, i'll be great. Jul 31, 2012 03:50 AM|gnoix|LINK the encrypted connection string can just be decrypted by the IIS which you used to encrypt the connection string so if you want to host your Import the key container on WebServer servers: aspnet_regiis -pi "DataProtectionConfigurationProviderKeys" tempmykeyfile.xml 11.
p.s: ILS works fine on local machine, it just doesn't when it's hosted somewhere else. Failed To Decrypt Using Provider 'dataprotectionconfigurationprovider' Can this be right? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Thanks for the detailed info.
Reply PhiMix says: March 28, 2006 at 1:04 am Great post and thanks for saving us from hours of debugging! look at this site How to deal with players rejecting the question premise Reversibility = non-causality. Error Message From The Provider Bad Data The key used to encrypt the data is embedded but it's also encrypted using RSA. Failed To Decrypt Using Provider 'rsaprotectedconfigurationprovider' Kind regards, Posted 24-Mar-10 2:54am Programm3r11.7K Updated 13-Apr-10 19:52pm v2 Add a Solution Comments Abhishek Pant 7-Feb-13 2:05am Does the problem is solved?
Generally, when you use VS 2008/VS 2005 test server to run ASP.NET application, you're using the logon user(which is probably the admin), however, if you run the ASP.NET in IIS (or Can my party use dead fire beetles as shields? Check to have this at the top of Web.Config file. Error message from the provider: Bad Data. Export The Rsa Key Container
Join them; it only takes a minute: Sign up Web.Config encryption using RsaProtectedConfigurationProvider - “Bad Data” error up vote 14 down vote favorite 2 I am attempting to encrypt connection string The Rsa Key Container Was Not Found Succeeded! I wish I could explain why this fixed it but when all your provided is a dumb error message (Bad Data!) you can't exactly expect a smart explanation.
Then the -pa part will work. Error message from the... Source Error: Line 40: Line 41:
Insults are not welcome. Parser Error Message: Failed to decrypt using provider ‘MyProtectionConfigurationProvider'. The 3rd party instucted us to decrypt the file using: C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pdf "connectionStri ngs" C:\Decrypt then we made some changes to the connection string and encrypted the file again using: C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis Suddenly, now we're getting Friday, May 25, 2007 3:09 AM by Makarand # re: Encrypting configuration files using protected configuration My case is little weired, I am getting the error, ""Failed
Suggested Solutions Title # Comments Views Activity Google Font -- Reference from Google or include in website? 1 33 20d How to filter an ASP.Net GridView using a CheckBoxList 7 33 Civilization of humans with monochromatic eyesight Rotations of a number Chess puzzle in which guarded pieces may not move Is there any job that can't be automated? I'm now running unencrypted just so the application is consistently available. Empirical CDF vs CDF What emergency gear and tools should I keep in my vehicle?
I did a google search and most answers were to export the RSA key container to the 2nd web server, but trying to do that on the 1st webserver gives this In this case the ASP.NET Development server runs under your account and first time you encrypt a config file the RSA Machine key is created with you as the owner. I was under the impression that the RSA key values get stored in the machine.config. –Harv Jan 20 '10 at 20:10 Add Remove and Clear tags in configProtectedData as Get 1:1 Help Now Advertise Here Enjoyed your answer?
Check the "Replace owner on subcontainers and objects" box and click OK. To create a machine-level RSA key container aspnet_regiis -pc "DataProtectionConfigurationProviderKeys" -exp 2. aspnet_regiis -pc "NetFrameworkConfigurationKey" -exp aspnet_regiis -pa "NetFrameworkConfigurationKey" "ASPNET" aspnet_regiis -pa "NetFrameworkConfigurationKey" "NETWORK SERVICE" aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT AUTHORITY\NETWORK SERVICE" Permalink Posted 24-Mar-10 3:32am J a a n s14.1K Rate I am sure it is not much a preferred solution on production servers but this is at least a pos… Microsoft IIS Web Server How to create custom scanning profiles in
Delete Keys Container (if needed only!) aspnet_regiis -pz "DataProtectionConfigurationProviderKeys" 9. Failed! Reply Ernesto says: June 7, 2007 at 10:25 am ‘RsaProtectedConfigurationProvider'. It took me a while to figure it out while getting error 8002801d a few times.
gulp-sourcemaps: Cannot find module './src/init' Cyberpunk story: Black samurai, skateboarding courier, Mafia selling pizza and Sumerian goddess as a computer virus Physically locating the server How do computers remember where they It sounds like you are encrypting the .config file on one machine (your dev machine?) and the attempting to decrypt on a different machine. In Command Prompt (my local PC) window go to: C:WINNTMicrosoft.NETFrameworkv2.0.50727 6. Grant access to the key on the web server aspnet_regiis -pa "DataProtectionConfigurationProviderKeys" "DOMAINUser" See in IIS the ASP.NET user or use: Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name 12.
For example to give access to the ASPNET user aspnet_regiis -pa "