MassTransit / Sample-ShoppingWeb

A web site with a simulated cart, using a saga to track cart expiration via Quartz
Apache License 2.0
80 stars 38 forks source link

while consuming event msg on saga service, It throws an error of Method not found #3

Closed atulpatel closed 8 years ago

atulpatel commented 8 years ago

state machine and scheduler starts fine also created db on sql server using EF. Service also started normally without error. But getting following runtime error while consuming msg from Web application.

Error : Content-Type: application/vnd.masstransit+json MT-Reason: fault MT-Fault-Message: Method not found: 'Void Automatonymous.Contexts.StateMachineEventContext2..ctor(System.__Canon, Automatonymous.Event1, System.Canon, System.Threading.CancellationToken)'. MT-Fault-StackTrace: at Automatonymous.Pipeline.StateMachineSagaMessageFilter`2.d5.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Automatonymous.Pipeline.StateMachineSagaMessageFilter2.Send(SagaConsumeContext2 context, IPipe1 next) at MassTransit.Pipeline.Pipes.LastPipe1.Send(T context) at MassTransit.EntityFrameworkIntegration.Saga.EntityFrameworkSagaRepository1.MissingPipe1.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MassTransit.Saga.DefaultSagaFactory`2.d2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MassTransit.Saga.Policies.NewOrExistingSagaPolicy2.<MassTransit-Saga-ISagaPolicy<TSaga\,TMessage>-Missing>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MassTransit.EntityFrameworkIntegration.Saga.EntityFrameworkSagaRepository1.d__8`1.MoveNext()

phatboyg commented 8 years ago

This seems like an assembly version conflict, since it's about a method missing. Did you update an assembly and get the Automatonymous assembly out of sync?

atulpatel commented 8 years ago

Thanks Chris.

You are right. Its working now.