Trouble shooting some errors

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:

Trouble shooting some errors

Post by jmestep » Sat Feb 21, 2009 3:41 pm

I'm troubleshooting a site that has been getting weird errors, especially for one product.
Validation of viewstate MAC failed --- I put a machineKey into the web.config file.
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. -- this one might have been a hacker- ip address was SE Asia.
The site also has their Able store embedded into a I frame on a site of theirs. Would this cause any problems, losing session data, Ajax not working?

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
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Trouble shooting some errors

Post by AbleMods » Sat Feb 21, 2009 11:38 pm

jmestep wrote:The site also has their Able store embedded into a I frame on a site of theirs. Would this cause any problems, losing session data, Ajax not working?
The entire AC7 store is embedded into an iframe tag??

Viewstate MAC errors can be about a million different things. The few I've run into were eliminated by disabling viewstate on the offending page. Not sure if I opened a door that I shouldn't have, but it did eliminate the problem.

I'm impressed the AJAX still works within the iframe :o
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

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

Re: Trouble shooting some errors

Post by jmestep » Sun Feb 22, 2009 1:05 pm

Well, I'm not sure how well the Ajax works in the IFrame. I was just checking to see if that would be one of their problems. This is one of those things where you can spend hours troubleshooting, so I fixed a few things and am waiting to see if it breaks again.
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

dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Re: Trouble shooting some errors

Post by dadkind » Mon Mar 16, 2009 9:29 am

How/where do I disable the view state on a page? In the "@Page" directive?

-tomas

SolunarServices wrote:
jmestep wrote:The site also has their Able store embedded into a I frame on a site of theirs. Would this cause any problems, losing session data, Ajax not working?
The entire AC7 store is embedded into an iframe tag??

Viewstate MAC errors can be about a million different things. The few I've run into were eliminated by disabling viewstate on the offending page. Not sure if I opened a door that I shouldn't have, but it did eliminate the problem.

I'm impressed the AJAX still works within the iframe :o

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Trouble shooting some errors

Post by AbleMods » Mon Mar 16, 2009 10:39 am

Yup, that's how I did it. I'm certainly no expert on viewstate though - do so at your own risk :wink:
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

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

Re: Trouble shooting some errors

Post by jmestep » Mon Mar 16, 2009 10:45 am

The problem this site was having ended up being a problem with Safari browser and Able has fixed that in build 11659.
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

Post Reply