HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith.CategoryMenu: object reference not set to an instance of an object.Smith.CategoryMenu: object reference not set to an instance of an object.
Previous
 
Next
New Post
2/26/2011 2:30 PM
 

I have created 4 instances of the Smith.BuyNow on 4 separate pages. Into each store I've imported just over 100 products. Since each store has the same category names and the import procedure does not know which store it is importing into, I imported them with unique category names to avoid having all the products imported into the first store. I then went in and renamed the categories to be the proper display names. I added the category menu to the same page as the first store and all worked fine, then added it to the second store page and I get the error, object referenced not set to an instance of an object. If I delete the first instance of the category menu I can get the second one to work but then the first one wont. I am unable to have multiple category menu for multiple stores on one portal. Please help as I am unable to complete the project. Below is the log message:

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 33752031-15a4-4e0e-ada7-bba8b6d2a4f4
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.CategoryMenu.CategoryMenu.Page_Load
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.at Smith.DNN.Modules.CategoryMenu.CategoryMenu.Page_Load(Object sender, EventArgs e)at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)at System.Web.UI.Control.OnLoad(EventArgs e)at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---

Mark Booy

 
New Post
2/26/2011 6:57 PM
 

What version of the cart are you running?


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
2/27/2011 4:49 PM
 

SmithCart 4.0 and DNN 5.6.1

Mark Booy

 
New Post
3/3/2011 1:38 AM
Accepted Answer 

I just tried recreating this problem on the www7 test site and was unable to do so, can you please try and change the settings to match yours and try and recreate the problem on our test site? If you need a login please email christian@smith-consulting.com.

Also, how are you adding it to the page? Your not using the "copy" feature to copy it from one page to another are you?

Thanks,

Christian

 
New Post
3/11/2011 2:58 PM
 

I think I was able to replicate the problem on the test site. Could it have to do with the viewstate of the treeview control? I noticed that it maintains it state even after I've left the page.

Mark Booy

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith.CategoryMenu: object reference not set to an instance of an object.Smith.CategoryMenu: object reference not set to an instance of an object.