Reactivating sites after computer system reinstall
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Reactivating sites after computer system reinstall
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
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
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Reactivating sites after computer system reinstall
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.
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.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Reactivating sites after computer system reinstall
OK, thanks. I think I will just quit on that test site and set up a new one for the build just out.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Reactivating sites after computer system reinstall
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).
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Re: Reactivating sites after computer system reinstall
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?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Reactivating sites after computer system reinstall
I think Logan means to do it from the security section in the admin.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Reactivating sites after computer system reinstall
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?
Is there a way of getting around this?
- satori
- Lieutenant (LT)
- Posts: 64
- Joined: Mon Jun 26, 2006 1:04 am
- Location: Colorado Rockies above Boulder
- Contact:
Re: Reactivating sites after computer system reinstall
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?
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?
-
- Lieutenant (LT)
- Posts: 79
- Joined: Thu Oct 04, 2007 9:23 am
- Location: West Hartford, CT
- Contact:
Re: Reactivating sites after computer system reinstall
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?
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
-
- Lieutenant (LT)
- Posts: 79
- Joined: Thu Oct 04, 2007 9:23 am
- Location: West Hartford, CT
- Contact:
Re: Reactivating sites after computer system reinstall
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
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
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com
Re: Reactivating sites after computer system reinstall
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
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
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.
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
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.
(............./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.