Page 1 of 1

Reactivating sites after computer system reinstall

Posted: Tue Jun 24, 2008 3:46 pm
by jmestep
I've had to re-do my C drive and am starting to get things hooked together again. I didn't install WSE until after AC7 was installed because AC7 was installed on a non-system drive. I've setup IIS again and re-attached the database, got a WSE error and installed it. Able help says:
NOTE #1: You should install WSE 3.0 before installing AbleCommerce. However, if you need to install WSE 3.0 after AbleCommerce is installed, then you will need to backup the web.config file and replace it when finished.
There wasn't any change in my web.config in the site root folder so I don't know what I'm supposed to change.
I might be past that place because now I have a new error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error message from the provider: Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)

Source Error:


Line 1: <connectionStrings configProtectionProvider="DataProtectionConfigurationProvider">
Line 2: <EncryptedData>
Line 3: <CipherData>
Line 4: <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAmDE7NK/2mkW9CLNiKllFngQAAAACAAAAAAADZgAAqAAAABAAAAA0lPedrLmPHg1v8YlPBpIzAAAAAASAAACgAAAAEAAAAI0iakZA96dxiYQ2OqMlodTQAQAA48l10S7odxGc16MTyUwr81RhAxIsEwHoJXL356u3FUu/TY1GISRV66ajPc/hmVDvrqFprV26YOnvRgtO/Ez48NcLmyRZINUvBDxQJDmpgaqSR0DgFMLNnGQbPlJ/1hdUUf+3shiSQYvEt3OCUu/X/baAH/r7T6DKDk/Xjw0yXq4mS2R9ClQjrRgmdWKhGBiYZkTtlW9/mkPfLki1TjFVL+8+zYYTqBkoCw5VTkMhmO2uqAxBH8wzT3wpGoZx++oMp/QbaL5mgk6hCgMvGQWZYFEILcl5ZiuPofUSVhzNyBs4zLtVDJVwmTtziV4L5DfOUMc98YXMGeO4am/edfWuoADWPIAfx3Gxh0TXLtfsNBMZVWXSN4AzlXTGJfvFag5X+kU6HS2P/ZLxn4iYiXX7aLbka6tCQMEGrejXfFOl7fLFMq4WKRz7JvKNtTTuKdfbhDXP8CW47Mkbws54d6HcGUGKNB026+nCxu+ezFyDhnslopDy468ZpGVoUvwjHgs0IvJPjsSmLNR+Di0IqhfdNS8FWHdMfSoiM9vCVGANGIERLq+a5B6pkPVQTpWytVzwDYaqPGQEjTnh5QNfQssUyc16gqbdYQ/NiY9uAWdjsa8UAAAA9WpGXhiFEX+0YRzfQIf4bnvGA2c=</CipherValue>


Source File: E:\DirectPBAC7Test\App_Data\database.config Line: 2


Any ideas? That file hasn't changed either.
Thanks

Re: Reactivating sites after computer system reinstall

Posted: Tue Jun 24, 2008 4:20 pm
by Logan Rhodehamel
OK, I have no idea what that note #1 about wse install is. I guess I will have to track that down to be sure.

The second error is because the encryption.config cannot be moved between installs. It's encrypted by Windows. The only way to get around this is to have the backup key exported from the install you are copying.

Re: Reactivating sites after computer system reinstall

Posted: Tue Jun 24, 2008 6:20 pm
by jmestep
OK, thanks. I think I will just quit on that test site and set up a new one for the build just out.

Re: Reactivating sites after computer system reinstall

Posted: Tue Jun 24, 2008 8:32 pm
by Logan Rhodehamel
Make sure to create a backup whenever you change the encryption key and keep it somewhere. If you lose the encryption key (like due to hardware failure) you need the key to read any encrypted data that exists from any restored backup (credit card numbers).

Re: Reactivating sites after computer system reinstall

Posted: Tue Aug 05, 2008 10:22 pm
by breggs
HI, i have the same problem after a new install of AbleCommerce. We have a main development server and have just set the project up on our three development client machines. I get this same error. Can someone explain what "The only way to get around this is to have the backup key exported from the install you are copying. " this means and let me know how to do that or give me some direction on what i have to do to get around this error?

Re: Reactivating sites after computer system reinstall

Posted: Wed Aug 06, 2008 7:40 am
by jmestep
I think Logan means to do it from the security section in the admin.

Re: Reactivating sites after computer system reinstall

Posted: Sun Aug 10, 2008 5:30 pm
by Opeyemi
My server was rebuilt and I've imported the previous keys into the RSA/Machine Keys directory but it does not appear to be using them to decrypt.

Is there a way of getting around this?

Re: Reactivating sites after computer system reinstall

Posted: Sat Aug 16, 2008 10:36 am
by satori
Oh my gosh, need help!

I sold my business, and moved my AC7 site from my dedicated server to the new owner's shared server. I tried to apply the latest patch, only to get the above error message. So I rolled back.

I do not have the exported key. How do I apply the patch?

I have 2 lawyers breathing down my neck here, and I submitted a ticket to AbleCommerce last night but haven't heard back yet. Do they work weekends? Or, better yet, hopefully someone here has a clue?

Re: Reactivating sites after computer system reinstall

Posted: Mon Aug 18, 2008 5:29 am
by drollins
If you have never set an encryption key for your dev install and you are getting this error then what? Is there a default key?

Re: Reactivating sites after computer system reinstall

Posted: Wed Aug 20, 2008 5:41 am
by drollins
OK - I looked about and finally came up with a solution to this problem that does not require you to know the key of your previous installation of windows.

Simply rename app_data/database.config to database.old

Then create a new app_data/database.config file that looks something like this (without the encryption provider)

<connectionStrings >
<add name="AbleCommerce"
providerName="System.Data.SqlClient"
connectionString= "server=MyServerName;database=MyDBName;uid=MyUserid;pwd=MyPassword"
/>
</connectionStrings>

Hint: In this example you need to change the values "MyServerName", "MyDBName", MyUserid and MyPassword to something meaningful to YOUR installation.

Note that now your connection credentials are in clear text now so if this is an issue on your dev box (for me it's my laptop so I dont care) then this solution is not for you.

More related info here on the RSA Encryption keys: viewtopic.php?f=42&t=7156

Re: Reactivating sites after computer system reinstall

Posted: Sun Sep 07, 2008 8:36 am
by Mike718NY
I also got the "Parser Error Message: Failed to decrypt using provider 'DataProtectionConfig..."
when I switched servers.

But now, I also can't log into my Administration page:
http://www.name.com/Admin/Login.aspx

I get "The page cannot be displayed".

I have backup keys, but can't restore them because I can't log in!

Anyone have any ideas why I can't access my Administration page? thanks

Re: Reactivating sites after computer system reinstall

Posted: Sun Sep 07, 2008 10:42 am
by Mike718NY
Do I need to setup the Admin folder as a web application:

Current Path:
\websiteRoot\Admin

This folder is NOT setup as a web application. Click the button below to install a Web Application.

Re: Reactivating sites after computer system reinstall

Posted: Mon Sep 08, 2008 11:02 am
by Mike718NY
I was able to finally sign in the Admin, but when I go to open the page to restore the Key,
(............./Admin/Store/Security/EncryptionKey.aspx)

I can't open the page and get the same error:
Configuration Error
Parser Error Message: Failed to decrypt using provider 'DataProtectionConfigurationProvider'
Line 1: <encryption configProtectionProvider="DataProtectionConfigurationProvider">
Line 2: <EncryptedData>

Is there anyone I can restore the Key because the Admin won't let me.