Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • egeek 40 posts 179 karma points
    Dec 11, 2013 @ 20:45
    egeek
    0

    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: 

    [ArgumentNullException: Value cannot be null.
    Parameter name: context]
       Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +262
       Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable`1 parameters) +117
       TeaCommerce.Umbraco.Application.DataTypes.StorePicker.StorePickerDataEditor.OnLoad(EventArgs e) +171
       System.Web.UI.Control.LoadRecursive() +116
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Control.LoadRecursive() +206
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2910

    [/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?

  • egeek 40 posts 179 karma points
    Dec 11, 2013 @ 21:57
    egeek
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Dec 12, 2013 @ 11:20
    Anders Burla
    0

    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

  • egeek 40 posts 179 karma points
    Dec 27, 2013 @ 13:12
    egeek
    0

    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)

  • egeek 40 posts 179 karma points
    Dec 29, 2013 @ 19:36
    egeek
    0

    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? 

  • egeek 40 posts 179 karma points
    Dec 30, 2013 @ 14:01
    egeek
    0

    Error loading Autofac modules Message: Method not found: 'Void Autofac.RegistrationExtensions.RegisterAssemblyModules(Autofac.ContainerBuilder, System.Reflection.Assembly[])'.

  • egeek 40 posts 179 karma points
    Jan 01, 2014 @ 22:11
    egeek
    0

    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)

     

  • Anders Burla 2560 posts 8256 karma points
    Jan 06, 2014 @ 18:13
    Anders Burla
    0

    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

  • egeek 40 posts 179 karma points
    Jan 06, 2014 @ 19:35
    egeek
    0

    Hi Anders,

    Thanks :)
    paul at paul dot tf 

  • Anders Burla 2560 posts 8256 karma points
    Jan 07, 2014 @ 08:23
    Anders Burla
    0

    Email heading your way

  • egeek 40 posts 179 karma points
    Jan 07, 2014 @ 19:18
    egeek
    0

    Hi Anders,

    It worked! Everything seems to be running perfectly now. Thanks a lot, much appreciated :) 
    Have a great day. 

  • Jaderberg 3 posts 23 karma points
    Jan 15, 2014 @ 08:12
    Jaderberg
    0

    Hi,

    I have the same problem trying out latest starterkit. Kan I get the fix as well?

    Best

    Jonas Jäderberg

  • Anders Burla 2560 posts 8256 karma points
    Jan 15, 2014 @ 09:23
    Anders Burla
    0

    Hi Jaderberg

    Yes - please just send your email address :)

  • Jaderberg 3 posts 23 karma points
    Jan 15, 2014 @ 10:27
    Jaderberg
    0

    Anders,

    jonas.jaderberg at telia.com

    //Jonas Jäderberg

  • Jaderberg 3 posts 23 karma points
    Jan 16, 2014 @ 07:47
    Jaderberg
    0

    Hi,

    Thank you, It solved the problem and it works perfect now.

    /Jaderberg

  • Jon Ivar Nielsen 24 posts 96 karma points
    Mar 22, 2014 @ 01:20
    Jon Ivar Nielsen
    0

    Hi

    Have the same problem, jon at cid dot no.

    :o)
    Jon Ivar

  • Anders Burla 2560 posts 8256 karma points
    Mar 25, 2014 @ 09:02
    Anders Burla
    0

    Just install Tea Commerce 2.2.3 - it has the fix implemented.

    Kind regards
    Anders

  • Jon Ivar Nielsen 24 posts 96 karma points
    Mar 25, 2014 @ 10:13
    Jon Ivar Nielsen
    0

    Will do, thanks Anders.

    :o)
    Jon Ivar

Please Sign in or register to post replies

Write your reply to:

Draft