Reputation: 2246
I have a [ServiceContract] MyServiceContract with some methods decorated with [OperationContract(IsOneWay = true)]. One of the methods is called LoadFile.
I have a ChannelFactory with NetMsmqBinding (ExactlyOnce = true) and EndPointAddress("net.msmq://localhost/private/MyService.svc").
I have an MSMQ set up as Transactional and named "MyService.svc".
In my application, there comes a time when I call ChannelFactory.CreateChannel to get a concrete instance of MyService (which implements MyServiceContract).
When I call LoadFile on that instance, it sends a message to my MSMQ.
When I am running in a release environment, that LoadFile method that went to my MSMQ gets pulled off and executed.
When I am running in a local machine test environment, that LoadFile method that went to my MSMQ just sits there.
I suspect that MyService is not running. But if that is the case, I don't know how to start it.
Upvotes: 0
Views: 28