So for now I have given up taking the service road - all I try to do is to
somehow setup the bus and get the site working with it.

Keeping things very close to the starbucks sample, I came up with this
config:

in global.asax:

var inventory = new RemoteAppDomainHost(typeof(InventoryBootStrapper))

.Configuration(@"C:\data\fex\Src\Client.Web.Site.MVC\Config\Inventory.config");

inventory.Start(); // <== exception here

var salesOrders = new RemoteAppDomainHost(typeof(SalesOrdersBootStrapper))

.Configuration(@"C:\data\fex\Src\Client.Web.Site.MVC\Config\SalesOrders.config");
salesOrders.Start();

var shopHost = new DefaultHost();
shopHost.BusConfiguration(c => c.Bus("msmq://localhost/fex.shop")
    .Receive("Limpens.Messages.Inventory", "msmq://localhost/fex.inventory")
    .Receive("Limpens.Messages.SalesOrders",
"msmq://localhost/fex.salesorders"));
shopHost.Start<ShopBootStrapper>();

With the config files looking like this:

<?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"
             endpoint="msmq://localhost/fex.inventory"
             />
        <messages>
          <add name="Limpens.Messages.SalesOrders"
               endpoint="msmq://localhost/fex.salesorders"/>
        </messages>
      </facility>
    </facilities>
  </castle>
</configuration>

Now I F5 into this and:

Could not load file or assembly 'Rhino.ServiceBus, Version=1.8.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot find the file specified.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or
assembly 'Rhino.ServiceBus, Version=1.8.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot find the
file specified.

Source Error:

Line 167:            var inventory = new
RemoteAppDomainHost(typeof(InventoryBootStrapper))
Line 168:
.Configuration(@"C:\data\fex\Src\Client.Web.Site.MVC\Config\Inventory.config");
Line 169:            inventory.Start();
Line 170:
Line 171:            var salesOrders = new
RemoteAppDomainHost(typeof(SalesOrdersBootStrapper))


Source File: C:\data\fex\Src\Client.Web.Site.MVC\FexContainerSetup.cs
Line: 169

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Rhino.ServiceBus, Version=1.8.0.0, Culture=neutral,
PublicKeyToken=null' could not be loaded.

=== Pre-bind state information ===
LOG: User = DevRig\Jan
LOG: DisplayName = Rhino.ServiceBus, Version=1.8.0.0, Culture=neutral,
PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Jan/AppData/Local/Temp/Temporary
ASP.NETFiles/root/aedfd9dc/78d70e7a/assembly/dl3/734c39a8/907df724_9bc7ca01
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Found application configuration file
(C:\data\fex\Src\Client.Web.Site.MVC\Config\Inventory.config).
LOG: Using application configuration file:
C:\data\fex\Src\Client.Web.Site.MVC\Config\Inventory.config
LOG: Using machine configuration file from
C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/Users/Jan/AppData/Local/Temp/Temporary
ASP.NETFiles/root/aedfd9dc/78d70e7a/assembly/dl3/734c39a8/907df724_9bc7ca01/Rhino.ServiceBus.DLL.
LOG: Attempting download of new URL
file:///C:/Users/Jan/AppData/Local/Temp/Temporary
ASP.NETFiles/root/aedfd9dc/78d70e7a/assembly/dl3/734c39a8/907df724_9bc7ca01/Rhino.ServiceBus/Rhino.ServiceBus.DLL.
LOG: Attempting download of new URL
file:///C:/Users/Jan/AppData/Local/Temp/Temporary
ASP.NETFiles/root/aedfd9dc/78d70e7a/assembly/dl3/734c39a8/907df724_9bc7ca01/Rhino.ServiceBus.EXE.
LOG: Attempting download of new URL
file:///C:/Users/Jan/AppData/Local/Temp/Temporary
ASP.NETFiles/root/aedfd9dc/78d70e7a/assembly/dl3/734c39a8/907df724_9bc7ca01/Rhino.ServiceBus/Rhino.ServiceBus.EXE.

WTF! In this directory is the dll of the bootstrapper and nothing else. Why
it is looking there at all is beyond me, both the bootstrapper dll and
rhino.servicebus are in the website's bin folder.

Any idea, what could be causing this? Even though i am in debug config and
am referencing the debug rhino.servicebus.dll and have the pdb file in
place, RemoteAppDomainHost.cs (from the original build dir) opened in vs,
the debugger refuses to step into it. This is annoying the hell out of me
... :S
I cleaned the build, I deleted Temporary Asp.NET Files, to no avail.

I know this might not be rhino related, but ... help?

jan

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
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