I have problems moving my site from local dev machine to prod. Production is running 2008 R2 .NET 4.5, so that shouldn't be the problem.
The content from the Tea Commerce tab in Sections is gone. I have tried republishing all my nodes and digged around, but I can't seem to find a solution.
Accessing the root node in TeaCommerce starterkit throws this exception:
[code]
Value cannot be null. Parameter name: context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: context
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Trying to add a hostname to my second node in the tree (store), I get this exception:
[code] {"Message":"An error has occurred.","ExceptionMessage":"Value cannot be null.\r\nParameter name: context","ExceptionType":"System.ArgumentNullException","StackTrace":" at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)\r\n at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)\r\n at TeaCommerce.Umbraco.Configuration.Compatibility.Domain.InvalidateCache()\r\n at umbraco.cms.businesslogic.web.Domain.NewEventHandler.Invoke(Domain sender, NewEventArgs e)\r\n at umbraco.cms.businesslogic.web.Domain.MakeNew(String DomainName, Int32 RootNodeId, Int32 LanguageId)\r\n at Umbraco.Web.WebServices.DomainsApiController.SaveLanguageAndDomains(PostBackModel model)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"} [/code]
Tea Commerce use Autofac for dependency injection and because some registration code fails - then autofac fails to register the components, and when Tea Commerce needs the components - it is null.
You should look for an error message that starts with: Error loading Autofac modules Message and see what the error message is.
2013-12-28 23:19:36,950 [6] INFO umbraco.BusinessLogic.Log - [Thread 11] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: Error loading Autofac modules Message: The invoked member is not supported in a dynamic assembly. - InnerException:
2013-12-28 23:19:36,965 [6] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplication, found 7 (took 14ms)
2013-12-28 23:19:37,121 [6] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.ITree
2013-12-28 23:19:37,168 [6] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.ITree, found 27 (took 45ms)
2013-12-28 23:19:39,118 [6] INFO umbraco.content - [Thread 11] Loading content from disk cache...
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 13] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 11] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 19] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 18] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 16] User Admin (Id: 0) logged in
2013-12-28 23:19:39,945 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Starting resolution types of umbraco.BusinessLogic.Actions.IActionHandler
2013-12-28 23:19:39,960 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Completed resolution of types of umbraco.BusinessLogic.Actions.IActionHandler, found 1 (took 6ms)
2013-12-28 23:19:40,397 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Starting resolution types of umbraco.interfaces.ITree
2013-12-28 23:19:40,460 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Completed resolution of types of umbraco.interfaces.ITree, found 46 (took 68ms)
Still haven't found a solution, and I'm lost about what causes this problem. Moving my site - Umbraco 6.1.6, TeaCommerce StarterKit 3.3.0 to Windows 2008 R2 IIS 7.5 .NET 4.5, throws this exception in the tracelog: https://gist.github.com/PaulSorensen/8173060
Note that this site is working perfectly on my dev enviroment - Windows 8.1 IIS8.5 running through Parallels.
I tried setting up a clean TeaCommerce StarterKit 3.3.0 on the same Windows 2008 R2 server, and it throws this exception saying invalid object "cmsTab" in addition to the exception thrown in the log on the site I'm trying to move. Don't know if these 2 can be linked together? https://gist.github.com/PaulSorensen/8173167
I've been digging around some more, and thought my problem could be caused by assemblie mismatch. Deleted all assemblies in bin folder, copied from TeaCommerce Starterkit 3.3.0 and then overrieded with assemblies from Umbraco 6.1.6.
Still same problem. My dev enviroment works but throws exceptions in the tracelog. I compared the tracelogs from dev and production, to find the difference, which is listed below.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.DataTypes.StorePicker.StorePickerDataEditor.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.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Do you have an email address I can try and send you a new build that loops binaries in a different way and has more try/catch code if an error happens in a 3. party dll.
Value cannot be null
I have problems moving my site from local dev machine to prod.
Production is running 2008 R2 .NET 4.5, so that shouldn't be the problem.
The content from the Tea Commerce tab in Sections is gone.
I have tried republishing all my nodes and digged around, but I can't seem to find a solution.
Accessing the root node in TeaCommerce starterkit throws this exception:
[code]
Value cannot be null.
Parameter name: context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: context
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[/code]
Trying to add a hostname to my second node in the tree (store), I get this exception:
[code]
{"Message":"An error has occurred.","ExceptionMessage":"Value cannot be null.\r\nParameter name: context","ExceptionType":"System.ArgumentNullException","StackTrace":" at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)\r\n at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)\r\n at TeaCommerce.Umbraco.Configuration.Compatibility.Domain.InvalidateCache()\r\n at umbraco.cms.businesslogic.web.Domain.NewEventHandler.Invoke(Domain sender, NewEventArgs e)\r\n at umbraco.cms.businesslogic.web.Domain.MakeNew(String DomainName, Int32 RootNodeId, Int32 LanguageId)\r\n at Umbraco.Web.WebServices.DomainsApiController.SaveLanguageAndDomains(PostBackModel model)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
[/code]
Any ideas what could cause this error?
Storepicker on MainMaster is failing because it can't find any stores, as content in my TeaCommerce sections is gone. But why and how to get it back?
Tea Commerce use Autofac for dependency injection and because some registration code fails - then autofac fails to register the components, and when Tea Commerce needs the components - it is null.
You should look for an error message that starts with: Error loading Autofac modules Message and see what the error message is.
Kind regards
Anders
Hi Anders,
I get:
2013-12-28 23:19:36,950 [6] INFO umbraco.BusinessLogic.Log - [Thread 11] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: Error loading Autofac modules Message: The invoked member is not supported in a dynamic assembly. - InnerException:
2013-12-28 23:19:36,965 [6] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplication, found 7 (took 14ms)
2013-12-28 23:19:37,121 [6] INFO Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.ITree
2013-12-28 23:19:37,168 [6] INFO Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.ITree, found 27 (took 45ms)
2013-12-28 23:19:39,118 [6] INFO umbraco.content - [Thread 11] Loading content from disk cache...
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 13] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 11] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 19] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 18] User Admin (Id: 0) logged in
2013-12-28 23:19:39,602 [6] INFO umbraco.BasePages.BasePage - [Thread 16] User Admin (Id: 0) logged in
2013-12-28 23:19:39,945 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Starting resolution types of umbraco.BusinessLogic.Actions.IActionHandler
2013-12-28 23:19:39,960 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Completed resolution of types of umbraco.BusinessLogic.Actions.IActionHandler, found 1 (took 6ms)
2013-12-28 23:19:40,397 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Starting resolution types of umbraco.interfaces.ITree
2013-12-28 23:19:40,460 [6] INFO Umbraco.Core.PluginManager - [Thread 17] Completed resolution of types of umbraco.interfaces.ITree, found 46 (took 68ms)
2013-12-28 23:19:45,935 [6] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 18] An unhandled exception occurred
System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.Trees.StoreTree.CreateRootNode(XmlTreeNode& rootNode)
at umbraco.presentation.webservices.TreeDataService.LoadAppTrees(TreeRequestParams treeParams)
at umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Still haven't found a solution, and I'm lost about what causes this problem.
Moving my site - Umbraco 6.1.6, TeaCommerce StarterKit 3.3.0 to Windows 2008 R2 IIS 7.5 .NET 4.5, throws this exception in the tracelog: https://gist.github.com/PaulSorensen/8173060
Note that this site is working perfectly on my dev enviroment - Windows 8.1 IIS8.5 running through Parallels.
I tried setting up a clean TeaCommerce StarterKit 3.3.0 on the same Windows 2008 R2 server, and it throws this exception saying invalid object "cmsTab" in addition to the exception thrown in the log on the site I'm trying to move. Don't know if these 2 can be linked together?
https://gist.github.com/PaulSorensen/8173167
Any advice?
Error loading Autofac modules Message: Method not found: 'Void Autofac.RegistrationExtensions.RegisterAssemblyModules(Autofac.ContainerBuilder, System.Reflection.Assembly[])'.
I've been digging around some more, and thought my problem could be caused by assemblie mismatch. Deleted all assemblies in bin folder, copied from TeaCommerce Starterkit 3.3.0 and then overrieded with assemblies from Umbraco 6.1.6.
Still same problem. My dev enviroment works but throws exceptions in the tracelog. I compared the tracelogs from dev and production, to find the difference, which is listed below.
Dev log: https://gist.github.com/PaulSorensen/8211531
Prod log: https://gist.github.com/PaulSorensen/8211541
Difference (prod - this causes the problem): https://gist.github.com/PaulSorensen/8211550
2013-12-31 17:15:00,678 [14] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 29] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.DataTypes.StorePicker.StorePickerDataEditor.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.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Hi
Do you have an email address I can try and send you a new build that loops binaries in a different way and has more try/catch code if an error happens in a 3. party dll.
Kind regards
Anders
Hi Anders,
Thanks :)
paul at paul dot tf
Email heading your way
Hi Anders,
It worked! Everything seems to be running perfectly now. Thanks a lot, much appreciated :)
Have a great day.
Hi,
I have the same problem trying out latest starterkit. Kan I get the fix as well?
Best
Jonas Jäderberg
Hi Jaderberg
Yes - please just send your email address :)
Anders,
jonas.jaderberg at telia.com
//Jonas Jäderberg
Hi,
Thank you, It solved the problem and it works perfect now.
/Jaderberg
Hi
Have the same problem, jon at cid dot no.
:o)
Jon Ivar
Just install Tea Commerce 2.2.3 - it has the fix implemented.
Kind regards
Anders
Will do, thanks Anders.
:o)
Jon Ivar
is working on a reply...