Reactivating sites after computer system reinstall

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Reactivating sites after computer system reinstall

Post by jmestep » Tue Jun 24, 2008 3:46 pm

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
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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Reactivating sites after computer system reinstall

Post by Logan Rhodehamel » Tue Jun 24, 2008 4:20 pm

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.
Cheers,
Logan
Image.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.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Reactivating sites after computer system reinstall

Post by jmestep » Tue Jun 24, 2008 6:20 pm

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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Reactivating sites after computer system reinstall

Post by Logan Rhodehamel » Tue Jun 24, 2008 8:32 pm

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
Image.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.

breggs
Ensign (ENS)
Ensign (ENS)
Posts: 1
Joined: Tue Aug 05, 2008 10:17 pm

Re: Reactivating sites after computer system reinstall

Post by breggs » Tue Aug 05, 2008 10:22 pm

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?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Reactivating sites after computer system reinstall

Post by jmestep » Wed Aug 06, 2008 7:40 am

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

Opeyemi
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Fri Feb 22, 2008 12:07 pm
Location: Blue Bell, PA
Contact:

Re: Reactivating sites after computer system reinstall

Post by Opeyemi » Sun Aug 10, 2008 5:30 pm

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?

User avatar
satori
Lieutenant (LT)
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

Post by satori » Sat Aug 16, 2008 10:36 am

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?

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Re: Reactivating sites after computer system reinstall

Post by drollins » Mon Aug 18, 2008 5:29 am

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

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Re: Reactivating sites after computer system reinstall

Post by drollins » Wed Aug 20, 2008 5:41 am

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
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Reactivating sites after computer system reinstall

Post by Mike718NY » Sun Sep 07, 2008 8:36 am

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

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Reactivating sites after computer system reinstall

Post by Mike718NY » Sun Sep 07, 2008 10:42 am

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.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Reactivating sites after computer system reinstall

Post by Mike718NY » Mon Sep 08, 2008 11:02 am

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.

Post Reply