When calling umbraco/backoffice/teacommerce/campaigns/getmanifestsforrules or umbraco/backoffice/teacommerce/campaigns/getmanifestsforawards we are getting the following 500 error (taken from Fiddler):
ExceptionMessage=Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
ExceptionType=System.IO.FileLoadException
Message=An error has occurred.
StackTrace= at TeaCommerce.Umbraco.Application.Controllers.CampaignsController.GetManifestsForRules()
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
Look like you don't have the right System.Net.Http.Formatting dll file. Or maybe its missing, or maybe there is a rule in the web.config that is redirecting to another one. Or maybe your test server runs a windows version where some stuff is missing. Not something that doesn't work in Tea Commerce out of the box. Try and download the starter kit here, which works.
campaigns/getmanifestforrules - System.Net.Http.Formatting reference error
When calling umbraco/backoffice/teacommerce/campaigns/getmanifestsforrules or umbraco/backoffice/teacommerce/campaigns/getmanifestsforawards we are getting the following 500 error (taken from Fiddler):
Versions:
TeaCommerce.Api.dll: 3.0.5.0 TeaCommerce.Api.Persistence.dll: 3.0.5.0 TeaCommerce.Api.Web.dll: 3.0.5.0 TeaCommerce.Api.PaymentProviders.dll: 3.0.1.0 TeaCommerce.Api.PaymentProviders.XmlSerializers.dll: 3.0.0.0
Look like you don't have the right System.Net.Http.Formatting dll file. Or maybe its missing, or maybe there is a rule in the web.config that is redirecting to another one. Or maybe your test server runs a windows version where some stuff is missing. Not something that doesn't work in Tea Commerce out of the box. Try and download the starter kit here, which works.
https://github.com/TeaCommerce/Starter-kit-for-Umbraco
Kind regards
Anders
Which version is TeaCommerce referencing?
The Umbraco implementation of Tea Commerce is open source and is available here:
https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco
https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/blob/master/Source/TeaCommerce.Umbraco.Application/TeaCommerce.Umbraco.Application.csproj
Its running 4.0.0.0
Kind regards
Anders
The error i was experiencing, was resolved by updating a webconfig reference from "0.0.0.0-4.0.0.0" to ="0.0.0.0-5.2.3.0"
is working on a reply...