Page 1 of 1
Please Help
Posted: Wed Mar 25, 2009 3:19 pm
by igavemybest
I recently changed servers from Windows Server 2005 to 2008 (for memory usage reasons). The site will not run as is, because the server only supports asp.net 2.0+ which was not of a concern to me because I am upgrading to AC7.0.2
I copied the upgrade files, and switched over the 3 files used for asp.net 3.5. I also moved the site during this time from the subdirectory /shopping/ to the main www url. I am now getting this error: (after the error I copied the original encryption.config file to overwrite the one on my server, and still the same error..any help please?)
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+sBAAAA5AckmBmg+Emi00mkRLYeKgQAAAACAAAAAAADZgAAqAAAABAAAADxL1ttYxzrf4uT72zh7UDxAAAAAASAAACgAAAAEAAAAOtMkVTJibne6D2elnQ+kWJoAgAAsoo6Gc6yCdlY9mmaQ285zv00MYtWhcRZF6vnpu3f03vn0ZpdL/gkAZwD5VeC9werLKUZF/sGzOqX42jcgwmlYpwCcG4brvCjp6UyrFhsQuH7om+6HaNvjHBvuJLxRQKCrtDabO4y9xaACp6wqfWW275VqOlpXLt+D6P3Exr8srsj+8hOtuX4KOxOSpNsy42QSR3pOxbI6xHC6Az4GkdVatRQoys3DUWwFBMPLDYfqN999rEz2FVLYeTDBU0Zcu6fcXfPNOrz+ckrXbsF/nzKui7HqlcxvkCMsFUcFhgMN8mFnMRdIf3t8RSZp/npuY8HzVSnB9Y1P6ypvZLc+i4b/EgDpdiX1KU08p4mDoPNYBTI12F0FuPncBXM5FzzzCGkYSQ18RSZKaU+FfPT+w2ubp08AZeb3/7iki1bb58ueccdhOYamZjBxHCucSc9b2k3Rit3107c6zWSefc9tHZ9HWEzBoWgNY4J7oroR8FcTJSDlHiTmuW4LMgdAsOt6LV5g1GBYobz/f90WhS23DaPHB84WUuQxXCHf1WKZF6lEFnMur15Y/EYKzSvOJIaLuRFrjTytteOXbKkniTjRArHy0siiyChtmVJIIX28STwNJMwrVKEp8UnCxksyIq01cUvoZ/FFNSlaXIX2lkaqKnzPIDYpE7AQqKJ2tYQ0eHy7iZy1JC8jjlgHAZPbxYEOYQwylynpomk3cmBlo1gt1cg/AZS8lXpDWltDgOzecgqINch+OG6OehZcTVLAmlmfBgZGl6u52oenraIMg01mmRtkcQatrl9j+E1jbLxSd2h2Jmsn/qNdCIpNBQAAACNHLZzN0T0IKXf1dKaQqO1wAmc2Q==</CipherValue>
Source File: E:\web\safetekusac\htdocs\App_Data\database.config Line: 2
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
Re: Please Help
Posted: Wed Mar 25, 2009 3:25 pm
by igavemybest
I wrote too soon. I replaced both the database.config & the encryption.config and it seems to work....I will be back if there is some other glitch.
Re: Please Help
Posted: Wed Mar 25, 2009 3:30 pm
by igavemybest
Submitted new license key for the directory change but got this error during the upgrade:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
CommerceBuilder.Shipping.ShipZoneDataSource.LoadForStore(Int32 maximumRows, Int32 startRowIndex, String sortExpression) +740
CommerceBuilder.Shipping.ShipZoneDataSource.LoadForStore() +15
Install_Upgrade.Upgrade_70_to_71(List`1 warningList, List`1 errorList) +41
Install_Upgrade.UpgradeButton_Click(Object sender, EventArgs e) +599
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
IN DEBUG MODE
Server Error in '/' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 158: {
Line 159: //VALIDATE DATA IN SHIPZONES
Line 160: _ShipZones = ShipZoneDataSource.LoadForStore();
Line 161: foreach (ShipZone zone in _ShipZones)
Line 162: {
Source File: e:\web\safetekusac\htdocs\install\Upgrade.aspx.cs Line: 160
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
CommerceBuilder.Shipping.ShipZoneDataSource.LoadForStore(Int32 maximumRows, Int32 startRowIndex, String sortExpression) +749
CommerceBuilder.Shipping.ShipZoneDataSource.LoadForStore() +15
Install_Upgrade.Upgrade_70_to_71(List`1 warningList, List`1 errorList) in e:\web\safetekusac\htdocs\install\Upgrade.aspx.cs:160
Install_Upgrade.UpgradeButton_Click(Object sender, EventArgs e) in e:\web\safetekusac\htdocs\install\Upgrade.aspx.cs:94
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
Is ASP.NET 3.5 Supported (Re: Please Help)
Posted: Fri May 08, 2009 1:17 pm
by efficiondave
I tried upgrading to ASP.NET 3.5 on a server with AbleCommerce 7.0.2 running and it caused problems. Is there an official word on whether ASP.NET 3.5 and/or Windows Server 2008 is supported?
Re: Please Help
Posted: Fri May 08, 2009 2:03 pm
by jmestep
We are running a dozen sites on Windows Server 2008.
I haven't tried .net 3.5, but I think it was supposed to be supported in 7.0.2.
Re: Please Help
Posted: Fri May 08, 2009 4:31 pm
by igavemybest
I use 7.0.2 running asp.net 3.5 and windows server 2008. Works great!
Re: Please Help
Posted: Tue May 12, 2009 8:45 pm
by efficiondave
So did you have to update all the references in web.config from "System.Web.Extensions, Version=1.0.61025.0" to "System.Web.Extensions, Version=3.5.xxxx.0"? Did you have to do anything else?
Re: Please Help
Posted: Wed May 13, 2009 3:23 am
by mazhar
With 7.0.2 install package there is a file named web_NET35.config. Rename it to web.config and replace your old web.config file with this one.
Re: Please Help
Posted: Thu May 28, 2009 7:29 am
by howardthai
Line 1: <connectionStrings configProtectionProvider="DataProtectionConfigurationProvider">
Line 2: <EncryptedData>
Line 3: <CipherData>
Line 4: <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAyIWzvHVLbkSaShQ5pVAyWwQAAAACAAAAAAADZgAAqAAAABAAAAC0giOTF3oQisCYkRAqPK6aAAAAAASAAACgAAAAEAAAAIHffB5gvteq8eEqzCpIArXYAQAA+ONyefTbnhAVSYlmwhWD6Pgjnnbxw5qihFBTLIdpi6PaLtmUw5HUUvLaQ6bjYYQILEDWcOCWXQboMvcgtuROqkE1P
im getting this error,
i moved my database from one server to antoher. How do i redo the encription key.
howard
Re: Please Help
Posted: Thu May 28, 2009 7:42 am
by igavemybest
You need to copy over the file that has the encryption key with the default file from the install folder.
Re: Please Help
Posted: Thu May 28, 2009 10:47 am
by Logan Rhodehamel
igavemybest wrote:You need to copy over the file that has the encryption key with the default file from the install folder.
If you do this, you will lose access to any data encrypted on the server.
The correct way to do this is to follow this procedure:
1) Prior to move, backup encryption key on the original installation. (You should always maintain a backup of your current encryption key!)
2) Move the installation to the new server
3) After move, restore encryption key on the new installation