Error message

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Error message

Post by Mike718NY » Thu Jul 31, 2008 4:29 pm

I'm getting this message sometimes when clicking "reccalculate" in shopping cart:

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

Re: Error message

Post by Mike718NY » Fri Aug 01, 2008 9:16 am

The hoster responded with this:

There are several ways to get around this problem:

1) Host your site on a server that never restarts or recycles!!! Obviously, this is impossible!

2) Disable ViewstateMac by putting this “enableViewStateMac="false"” in your web.config. This approach is not 100% secure.

3) Configure ASP.NET to not use Auto-Generated Key but rather a predefined key. This is the preferred method.

Should I used option 2 or 3? thanks

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

Re: Error message

Post by jmestep » Fri Aug 01, 2008 11:27 am

Use #3 according to an earlier Able post from Logan.

Go to this link: http://aspnetresources.com/tools/keycreator.aspx

Leave the defaults in place, validation key length 64, encryption key length 24, type sha1. Click Generate to create a random machine key for you and copy the result.

Now open the web.config file from your site. Find around line 33 where it shows:

<system.web>

And paste in the <machineKey ... /> on the next line. Save that file.
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

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

Re: Error message

Post by Mike718NY » Fri Aug 01, 2008 3:46 pm

Thanks Judy,
Here's how it looks for anyone else who needs to do it:

<system.web>
<machineKey validationKey="6DF5E433D8C9405FB87840F9 ..........
decryptionKey="9BACA138B26E39975F31CE4132180179B874 ............
<customErrors mode="Off"/>
<pages theme="AbleCommerce" ....................

Post Reply