nservicebus

How to configure nservicebus msmqtransport with code

Hi all, Im just geting started with NServiceBus and can't figure out what im missing when configuring the MsmqTransport in code. If I configure the publisher like this; IBus bus = Configure.With() .CastleWindsorBuilder() .XmlSerializer() .MsmqSubscri...

MSMQ Access issue in NServiceBus with asp.net web service.

Hi I am trying to implement publisher - subscribe in my project of asp.net (wcf) web services. When i am trying to create bus in global.asax protected void Application_Start(object sender, EventArgs e) { try { log4net.Config.XmlConfigurator.Configure(); Bus = NServiceBus.Co...

Server architecture question. (WCF+NServiceBus)

First of all i will describe current state: Server consists of several WCF services, hosted in one or several win services on diffirent machines. Service responsible for recieving data from diffirent devices. Communication with devices is implemented using sockets. Service instance mode - singleton. Data broker service - respons...

NServiceBus - Application as subscriber and worker service

Hi all, I have a service which needs to run on multiple machines picking jobs off of a single queue ensuring each job is only undertaken by a single service. I also need to publish messages for all services to receive, such as reload triggers. Is this possible in nservicebus without too much hacking? I have proved that both the publis...

Any viable alternatives to WCF and WSDL for integration endpoints?

My employer is a software vendor for a specific market. Our customers integrate our system with others using web services. We use Microsoft technology, and our web services are implemented in ASP.NET and WCF. The time has come to review our current set of services, and come up with company standards for future integrations. I am reading...

NServicebus / CQRS: How to handle things in the userinterface?

I've been reading Udi Dahan's text on [Command Query separation and SOA][1]. Thinking about how I would use this in practice in a system I'm currently working on raised some questions... 1. Consider the following situation where I have a WPF client application that allows the user to edit a list of entries: The client application is...

How do I correctly pool multiple message in NServiceBus?

I have an NServiceBus app which receives a particular message when a large database update is required. While this update is happening, I want to either somehow ignore all incoming messages of this type. What is the best way of doing it? Should I put a lock statement in there? ...

Unable to cast object of type 'MyService.EndpointConfig' to type 'NServiceBus.Host.IConfigureThisEndpoint'.

I have a problem with NServiceBus: I have defined an endpoint config that implements IConfigureThisEndpoint, but when I run the service with a generic host, it complains that the type cannot be cast to the namespace. Any idea why? ...

synchronized message with nservicebus

I have a web service that needs to make a call to nservicebus in a synchronized manner. How can this be achieved ? ...

"Could not load file or assembly"/ "or one of its dependencies. The module was expected to contain an assembly manifest."

Hi All I have a c# application which uses SharpSVN dll and NServicebus dll,it compile fine but when it is executing(in the time of initialize the bus) it throw the following error Could not load file or assembly 'file:///C:\Repositories\Repo\hooks\SharpSvn-DB44-20-Win32.dll' or one of its dependencies. The module was expected to con...

ASP.NET MVC app restarts itself

We are encountering an issue where our ASP.NET MVC app is restarting for an unknown reason. The cause of the shut down is "A subdirectory in the Bin application directory was changed or renamed." The file in question turned out to be C:\Users\Jason\AppData\Local\Temp\Temporary ASP.NET Files\root\f691a68c\a1593a1e\hash\hash.web. ...

How can I control message lost from nServicebus

Hi All, I have a nServicebus application,now my application reads messages from handler and remove the messages from bus automatically. But what I want is that after retriving messages from Handler it should not remove messages from bus.And after my message processing which is done by my code, I will remove the message from bus. It mean...

where to put begintransaction and opensession in nservicebus

I attended Udi Dahan's lecture at ndc 2009 in Norway - Making Patterns Complete. Now I want to replace my all my repositories with MessageHandlers in Nservicebus. I am using Nhibernate, but I don't know where to put BeginTranscactin/commit and OpenSession. Should each messagehandler contain begintransaction and openSession ? What about ...

NServiceBus - what is the point of IHandleMessages<T> vs IMessageHandler<T>?

What is the point of IHandleMessages<T> vs IMessageHandler<T> in NServiceBus 2.0? One interface derives from the other and does not appear to add any new methods or new constraints on T. It is possible that one is a marker interface but there is no evidence for this in the comments. ...

"Reference required" error when referencing NServiceBus assembly from another project

We are trying to write an application that uses the NServiceBus library in a VB.NET environment. We've been stymied by errors similar to the following: Reference required to assembly 'NServiceBus, Version=2.0.0.1071, Culture=neutral, PublicKeyToken=9fc386479f8a226c' containing the implemented interface 'NServiceBus.IMessageHandler`1'...

NServiceBus persisting subscriptions in Pub/Sub sample

I want to figure out how I to set up the Pub/Sub sample from NServiceBus to work in the case of publisher malfunction. When I start the samples and accidentaly close the Subscribers, if I restart everything works fine. If however I kill the publisher and the subscriptions continue to work, if I restart the publisher, then it doesn't seem...

Nservicebus and S#arp Architecture

I am trying to integrate S#arp Architecture with NServicebus but I am getting some errors. Anyone already used both projects together? Any examples about that? The Ibus seems to be correctly instantiated but I am getting this error when I call the bus.Send(message). System.NullReferenceException: Object reference not set to an instanc...

NServiceBus Retry Delay

What is the optimal way to configure/code NServiceBus to delay retrying messages? In its default configuration retry happens almost immediately up to the number of attempts defined in the configuration file. I'd ideally like to retry again after an hour, etc. Also, how does HandleCurrentMessageLater() work? What does the Later aspect r...

Communicating between ASP.NET applications on the same machine

I have a situation where information about a user is stored in the web application cache and when that information is updated in one application - I want to notify the other applications (running on the same machine) that the data should be removed from it's cache so it can be refreshed. Basically I need to keep cached data in sync acros...

Error creating queue in nservicebus

After some months I am finally back to using nservicebus and started to test it out on a server. Unfortunately I am getting this exception The queue does not exist or you do not have sufficient permissions to perform the operation. I've checked using computer manager and the queue does exist and I have granted everybody full contro...