HomeHome Product Discus... Product Discus...SmithCartSmithCartUnable to load ViewstateUnable to load Viewstate
Previous
 
Next
New Post
4/30/2012 8:26 PM
 

I have recently purchased and installed Smith Cart 4.93 on DNN 6.1.5. I am having an issue when using Chrome to browse the store. If I click a link in the category module it works as expected. However, when I click a second category I receive the error below. Upon clicking a third category it works again, but clicking any category after that reloads the page but does not change the category.

This happens everytime I use chrome. Any ideas? This one is a show stopper for sure!

AssemblyVersion: 6.1.5

PortalID: 3

PortalName: ***

UserID: -1

UserName:

ActiveTabID: 157

ActiveTabName: Store

RawURL: /Store/tabid/157/categoryid/4/Default.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://www.***.com/Store/tabid/157/categoryid/4/Default.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: ca8f34c6-11c7-4f8a-aeae-f95e7b8cd805

InnerException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.Web.UI.Control.LoadViewStateRecursive

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. ---> System.Web.HttpException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name:

 
New Post
4/30/2012 11:01 PM
 
Do you have viewstate disabled in your web.config or in the page? If so try enabling it.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/1/2012 9:10 PM
 

Here is the line from the web.config file:

 <pages validateRequest="false" enableViewStateMac="true" enableEventValidation="true" viewStateEncryptionMode="Always">

I have not modified the Default.aspx page in DNN or otherwise modified the default installation.

 
New Post
5/1/2012 9:20 PM
 
I have modified the web.config to this:


The error has stopped but the category does not change. The url in the address does not change either but if I manually change/add category to the url it works as expected.

Any help is much appreciated! This one has me stumped.
 
New Post
5/3/2012 12:39 AM
 
Hello,

Are you referring to the SmithCategory module?

Could you provide a link to your site?

Have you set the BuyNow Page Name in the Category module Settings?

Thanks,
 
New Post
5/11/2012 1:56 PM
 
Yes I am referring to the SmithCategory module and yes the BuyNow Page Name has been set.

The site is located here: http://stlcoffeeroasters.com/Store.aspx

It almost appears to be a cache issue. I am continuing to troubleshoot the issue on my end and will post back if I find a solution.
 
New Post
5/11/2012 2:11 PM
 
ITLackey wrote:
It almost appears to be a cache issue. I am continuing to troubleshoot the issue on my end and will post back if I find a solution.

So after triple checking the cache setting for the BuyNow module, I found that the setting was once again set to cache to a file instead of turning caching off. Not sure why my settings changed back, but I am sure it was either a DNN issue or lack of sleep on my end.

Thanks again for your help!

 
New Post
5/11/2012 7:55 PM
 
Glad to hear you were able to find the resolution and thanks for posting back!

I will go ahead an mark this thread as Resolved.

Thanks,
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartUnable to load ViewstateUnable to load Viewstate