Copied to clipboard

Flag this post as spam?

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


  • Verner Henriksen 3 posts 73 karma points
    Nov 22, 2017 @ 10:43
    Verner Henriksen
    0

    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):

    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()
    

    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

  • Anders Burla 2560 posts 8256 karma points
    Nov 22, 2017 @ 13:38
    Anders Burla
    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

  • Verner Henriksen 3 posts 73 karma points
    Nov 22, 2017 @ 14:40
    Verner Henriksen
    0

    Which version is TeaCommerce referencing?

  • Anders Burla 2560 posts 8256 karma points
    Nov 23, 2017 @ 11:38
  • Verner Henriksen 3 posts 73 karma points
    Nov 27, 2017 @ 07:38
    Verner Henriksen
    0

    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"

Please Sign in or register to post replies

Write your reply to:

Draft