HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith Cart v 4.99 - error - Object reference not set to an instance oSmith Cart v 4.99 - error - Object reference not set to an instance o
Previous
 
Next
New Post
5/8/2012 12:32 AM
 

Hi Kevin, in my case it didn't solve the situation.

Help, please. What should I do?

thanks

 
New Post
5/8/2012 12:50 AM
 
PWM wrote:

Hi Kevin, in my case it didn't solve the situation.

Help, please. What should I do?

thanks


Could you please provide more information?

What are you seeing?

Is there anything logged to your DNN Event Viewer?

Did you save both the Single Column and Multi Column Page Templates?

Have you reset IIS or recycled your app pool from the DNN host settings menu?

Thanks,

 
New Post
5/8/2012 1:24 AM
 

Hi Kevin,

Yes, I restarted the aplication. The error is still there.
Yes, I create both templates.

The error on the page is the following:
An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. ---> System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. at System.Web.UI.ControlCollection.RemoveAt(Int32 index) at System.Web.UI.ControlCollection.Clear() at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id) at DotNetNuke.Common.Globals.FindControlRecursive(Control objControl, String strControlName) at DotNetNuke.Entities.Modules.PortalModuleBase.get_ContainerControl() at Smith.DNN.Modules.BuyNow.ProductsList.bindDtProductList() at Smith.DNN.Modules.BuyNow.ProductsList.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 ---

In event view I found the following error message, maybe it can help.
AssemblyVersion: 5.6.2
PortalID: 0
PortalName: business setting
UserID: 4
UserName: superpatricia
ActiveTabID: 162
ActiveTabName: Novas Encomendas
RawURL: /Home/costsetting/Áreadeclientes/Plataformaonlinedacostsetting/NovasEncomendas.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.business-setting.com/Home/costsetting/%C3%81readeclientes/Plataformaonlinedacostsetting.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.0; rv:12.0) Gecko/20100101 Firefox/12.0 AlexaToolbar/alxf-2.15
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f9c55cbb-249c-49ee-920d-a6d5706e96af
InnerException: The ID 'Label1' is already used by another control.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.TemplateParser.ProcessError
StackTrace:
Message: System.Web.HttpParseException: The ID 'Label1' is already used by another control. ---> System.Web.HttpParseException: The ID 'Label1' is already used by another control. ---> System.Web.HttpException: The ID 'Label1' is already used by another control. at System.Web.UI.TemplateParser.ProcessError(String message) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadTemplate(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadTemplate(String virtualPath) at Smith.DNN.Modules.BuyNow.ProductsList.BindDataListTemplate() at Smith.DNN.Modules.BuyNow.ProductsList.Page_Init(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.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)
Source:
Server Name: D122

 
New Post
5/8/2012 1:06 PM
 
Hello,

Please reset IIS.

To restart IIS, Click Start, click Run type IISReset, and then click OK.

A Command Prompt window opens displaying the status of the IISReset command. You should read the status at the command prompt to make sure that IIS stops and restarts.

If you are using a shared hosting provider and cannot restart IIS you can modify and save the web.config file and the changes automatically and restarts IIS.

If you are using dedicated hosting please reboot your server.

Thanks,
 
New Post
5/9/2012 3:56 AM
 

Hi Kevin,

We restarted the ISS, it didn't work.
I uninstalled all the SC modules, installed the new version again, and still with error.

I saw that the error is about "Label1".
I changed the "Label1" in the template to "Label99", and now the error shows that is about the LABEL99.

FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.TemplateParser.ProcessError
StackTrace:
Message: System.Web.HttpParseException: The ID 'Label99' is already used by another control. ---> System.Web.HttpParseException: The ID 'Label99' is already used by another control. ---> System.Web.HttpException: The ID 'Label99' is already used by another control. at System.Web.UI.TemplateParser.ProcessError(String message) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadTemplate(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadTemplate(String virtualPath) at Smith.DNN.Modules.BuyNow.ProductsList.BindDataListTemplate() at Smith.DNN.Modules.BuyNow.ProductsList.Page_Init(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.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)
Source:
Server Name: D122

 
New Post
5/9/2012 8:04 AM
 

Hi Kevin,

I continued trying and I got it.

So, after change the Product Catalog Columns: field to 3 it worked.

Thanks,

 
New Post
5/9/2012 2:18 PM
 
Hello,

Glad you were able to get your Cart up and running.

When you upgraded the module the old css, configuration, or settings may be cached which just waiting until the web server flushes the cache and reloads from the disk again will resolve.

Thanks,
 
New Post
5/14/2012 6:53 AM
 
Good morning,

I am having troubles with the upgrade from 4.93 to 4.99 as well.

My buynow module throws the error below. What is strange is that if I create a new page and add the module it does not throw the error but the config page is empty. My existing products cannot be seen but I can see them through accessing the SQL Server. And if I add a new product it shows up in the SQL Table but the products listing does not show products previous to the upgrade. So I know it is using the correct database but most screens are not reflecting what is there.

Any help would be greatly appreciated. -Scot





AssemblyVersion: 6.1.3
PortalID: 0
PortalName: XXXXXXXXXx
UserID: 1
UserName: XXXXXXX
ActiveTabID: 156
ActiveTabName: Shop
RawURL: /Shop.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://alt.xxxxxxxx.com/Admin/testcart/tabid/185/ctl/AddProducts/mid/694/ProductID/30/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 05a99738-5bca-4800-9725-747e66e854df
InnerException: Can't get ModuleId for given module name 'Smith.BuyNow'
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.FeaturedProducts.FeaturedProducts.GetModuleIdByName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Can't get ModuleId for given module name 'Smith.BuyNow' ---> System.ApplicationException: Can't get ModuleId for given module name 'Smith.BuyNow' at Smith.DNN.Modules.FeaturedProducts.FeaturedProducts.GetModuleIdByName(Int32 tabId, String moduleName) at Smith.DNN.Modules.FeaturedProducts.FeaturedProducts.GetEUVATSettings() at Smith.DNN.Modules.FeaturedProducts.FeaturedProducts.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 ---

 
New Post
5/14/2012 7:07 AM
 

***UPDATE***

I got around the error. My tech had added a module to the page without setting the buynow page name. I removed that module and no longer get the error.

 

HOWEVER, When I go to my products, all my products from before the upgrade are missing. SQL Server still shows them.

Same for Categories. Not visible in maintenance screens but are in 

Payment methods, Coupons and Manufacturers show correctly.

 

Thank you.

 

 
New Post
5/14/2012 7:22 AM
 

***FURTHER UPDATE***

My tech found that if he went directly to the edit url for a product and saved that product that it reappeared in the system.

So I looked at the table and found a column called tabmoduleid that was set to 268 for all products that were invisible(added pre4.99) and was set to 575 for any new product or one that had been updated. So I executed the following sql query...

 

update smith_products
set tabmoduleid=575
 
...and I got my products back.
 
The same process retrieved my categories.
 
Any idea about how this could have happened in the upgrade?
 
Thanks,
Scot
 
New Post
5/14/2012 12:25 PM
 
Hi Scot,

TheTabModuleID is saved with product so if you delete a BuyNow module and add it again to the page DNN will assign a different TabModuleID. The reason for this is so you can run multiple stores in your portal with unique categories and products.

Thanks,
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith Cart v 4.99 - error - Object reference not set to an instance oSmith Cart v 4.99 - error - Object reference not set to an instance o