Since I have gone through some hard time, figuring/digging out information about the MSMQ distributor service for the Enterprise Library, so I thought it would be worthwhile to document the information that was gathered through various sources. (just post a comment if you need config files).
The MSMQ Distributor Service runs on the computer that acts as the destination for the log entries that are written to the MSMQ Sink. The service processes log entries as they are received by MSMQ and routes them to the Logging and Instrumentation Application Block. This service is not installed by default. You can install the service by performing the following steps:
1. If you want to install the MSMQ distributor service on a computer other than the one where you installed Enterprise Library, copy the files MsmqDistributor.exe, MsmqDistributor.exe.config and loggingDistributorConfiguration.config to the target computer. You can find these files in the bin directory after you have compiled Enterprise Library. (The service can be installed using the files in the bin directory; it will run on the computer where you installed Enterprise Library.) The destination computer must have Message Queuing (also known as MSMQ) installed for the service to operate correctly.
2. Open a Visual Studio command prompt and change to the directory where you copied the files in step 1.
3. Run the following command from the command prompt: installutil /i MsmqDistributor.exe
4. When prompted, enter the user name and password for the account to be used when running the service. User name should be entered in the form of domain\user name.
5. Start the service. The service is installed with a Startup Type of Manual. You may start the service using the Windows Services Management Console.
MSMQ Distributor Service requires configuration file with application-specific settingsThe default configuration for the MSMQ Distributor Service does not contain distributor settings for the service. The settings are specific to your application. This means you must use the Configuration Console to create the appropriate settings for the MSMQ Distributor Service. To configure the MSMQ Distributor Service for your application, perform the following steps:
1. Open the file MsmqDistributor.exe.config with a text editor. Remove the configuration section named “loggingConfiguration” and save the file.
2. Using the Configuration Console, open the configuration file MsmqDistributor.exe.config. This file is located in the same directory as the file MsmqDistributor.exe. See note 2.2 for the location of the directory that contains this file.
3. Right-click the configuration node named Distributor Settings, click New, and then click MSMQ Distributor Service. This will add the node named MSMQ Distributor Service to the configuration tree.
4. Click the node named MSMQ Distributor Service to display the configuration settings for that node.
5. (Optional) Change the value for the MsmqPath property. This value should match the name of the queue specified in the configuration of the MSMQ Distribution Strategy of the client application.
Courtesy: Hisham Baz