an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Padding Error , While Open an Order in Admin
Last Post 11/12/2009 2:12:19 PM By lukezy. 3 replies.
11/9/2009 3:41:41 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Padding Error , While Open an Order in Admin

I copied all source and database of live site to a test server and got this error  when opening an order in Admin section :

Padding is invalid and cannot be removed.

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.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.

Source Error:

<table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td>
Line 27:         get {
Line 28:             if (null == order)
Line 29:                 order = Order.Get(orderId);
Line 30:             return order;
Line 31:         }
</td> </tr> </tbody> </table>
Source File: d:\AcrEStore_3.1-New\Web\Admin\Order\OrderEdit.aspx.cs    Line: 29
11/10/2009 1:27:56 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Padding Error , While Open an Order in Admin
Seach "System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed." in our main site search box.
DotShoppingCart Staff
11/12/2009 1:59:56 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Padding Error , While Open an Order in Admin
I did created a new Master.Key. still the same problem. Same message. Is it due to the License information, How can i reset those License Data since it is a test copy.
11/12/2009 2:12:19 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Padding Error , While Open an Order in Admin
If you create a new key, you won't be able to view the old orders that were using the old key. New orders should work just fine. Read how to back up the key not the key file.
DotShoppingCart Staff