This is from the UmbracoTraceLog when I click on the backoffice TeaCommerce section.
2013-05-02 15:46:54,597 [5] INFO Umbraco.Core.PluginManager - [Thread 20] Completed resolution of types of umbraco.BusinessLogic.Actions.IActionHandler, found 1 (took 2ms)
2013-05-02 15:46:58,037 [5] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 9] 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.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
After uninstall of teacommerce 2.1.0 this error: Could not load file or assembly 'TeaCommerce.Api, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
[FileNotFoundException: Could not load file or assembly 'TeaCommerce.Api, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
System.Reflection.RuntimeAssembly.GetExportedTypes() +49
Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +139
Umbraco.Core.TypeFinder.GetTypes(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses) +161
Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func`1 finder) +53
Umbraco.Core.PluginManager.ResolveTypes(Func`1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +1145
Umbraco.Web.WebBootManager.InitializeApplicationEventsResolver() +76
Umbraco.Core.CoreBootManager.Initialize() +537
Umbraco.Web.WebBootManager.Initialize() +51
Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +100
[HttpException (0x80004005): Could not load file or assembly 'TeaCommerce.Api, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12863325
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Could not load file or assembly 'TeaCommerce.Api, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12880068
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12721257
This is because the SuppressDependency has changed signature from the 2.0.1 build you got - So you should build your custom code using the newest dll. That should do the trick
This indeed is the problem. I was already suppressing but forgot the 'I' in the suppressdependency because the dependency must be set on the interface.
I have installed TC 2.1.3 оn our acceptance enviroment. But by some reason after deployment we got the following error:
2013-09-10 09:28:20,903 [28] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 12] 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.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
On our test enviromen everything work but by some reason it is stop work on acceprtance.
If it works on the test environment and not production - then try and see what is different about these two system setups. Maybe permissions for folders or some of the config files?
TC.HasCurrentOrder throws error
Hi,
I was testing order creation/finalizing with teacommerce, suddenly this error while calling TC.HasCurrentOrder(1) from a SurfaceController.
Also the TeaCommerce backoffice panel doesn't show content anymore. Any idea?
I'm running 2.1.0.
Merijn
<edit>Just noticed also the store picker throws this error. I'll backup database/files and reinstall teacommerce let's see what happens.</edit>
This is from the UmbracoTraceLog when I click on the backoffice TeaCommerce section.
After uninstall of teacommerce 2.1.0 this error: Could not load file or assembly 'TeaCommerce.Api, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
This is because the SuppressDependency has changed signature from the 2.0.1 build you got - So you should build your custom code using the newest dll. That should do the trick
Kind regards
Anders
Hi Anders,
I will comment out all event handlers and try again.
Merijn
Hi Anders,
This indeed is the problem. I was already suppressing but forgot the 'I' in the suppressdependency because the dependency must be set on the interface.
This is working ok now:
[TeaCommerce.Api.Dependency.SuppressDependency("TeaCommerce.Api.PriceCalculators.IOrderCalculator","TeaCommerce.Api")]
Sorry for overflooding you with information in this one. It took me a while before I got the clear mindset that solves problems....
Best regards,
Merijn
Yeah - it is always the interface that you want to suppress :)
Kind regards
Anders
Hi all,
I have installed TC 2.1.3 оn our acceptance enviroment. But by some reason after deployment we got the following error:
2013-09-10 09:28:20,903 [28] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 12] 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.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
On our test enviromen everything work but by some reason it is stop work on acceprtance.
Any idea?
If it works on the test environment and not production - then try and see what is different about these two system setups. Maybe permissions for folders or some of the config files?
Kind regards
Anders
The source of problems was in the following:
Our solution was configurated to use .net 4.0, but by some reason our developer add into project dll with runtime version 4.5 (EntityFramework.dll)
After we changed dll version from 4.5 to 4.0 TC start work.
One I found strage that it happen only on production:)
is working on a reply...