Hi All,

I am getting this exception when I try to install a class library as 
service using rhino host. I am using RhinoService Bus dll version 1.8.0.0.

Service cannot be started. 
System.Configuration.ConfigurationErrorsException: could not find facility 
configuration section with the same name of the facility

Server stack trace: 
   at Rhino.ServiceBus.Impl.AbstractRhinoServiceBusFacility.Init()
   at Castle.MicroKernel.DefaultKernel.AddFacility(String key, IFacility 
facility)
   at Rhino.ServiceBus.Hosting.DefaultHost.InitailizeBus(String asmName)
   at Rhino.ServiceBus.Hosting.DefaultHost.Start(String asmName)
   at 
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr
 
md, Object[] args, Object server, Int32 methodPtr, Boolean 
fExecuteInContext, Object[]& outArgs)
   at 
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage 
msg, Int32 methodPtr, Boolean fExecuteInContext)


Here is my boot strapper class

public class Class1:AbstractBootStrapper
    {
        protected override void ConfigureContainer()
        {
            base.ConfigureContainer();
            container.AddFacility<TypedFactoryFacility>().Register(
                //RSB
          
Component.For(typeof(ISagaPersister<>)).ImplementedBy(typeof(InMemorySagaPersister<>))

          );
        }       

    }


Here is my App.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="castle" 
type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, 
Castle.Windsor" />
    </configSections>
  <castle>
    <facilities>
      <facility id="rhino.esb" >
        <bus threadCount="1" numberOfRetries="5" transactional="true"
             endpoint="msmq://localhost/dummyscheduler"
             logendpoint="msmq://localhost/dummyscheduler.log"/>
      </facility>
    </facilities>
  </castle>  
</configuration>

Here is the command I am using to install the library as a service

Rhino.Servicebus.Host.exe /action:install /name:DummyScheduler 
/Assembly:DummyScheduler.dll /config:App.config /BootStrapper:Class1


I did debug using Debugger.Launch() but it doesn't give any exceptions in 
boot strapper.

Any help would be much appreciated.

Thanks
Krishna

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rhino-tools-dev/-/TPGZTCoW2ksJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to