Share DLLs between two Serviced Components in COM+ (C#)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

How can I make two Serviced Components runnnig in COM+ share another dll?

I have two projects, GetData and PlaceOrders, which are Serviced Components.
They both the use my Utility dll. When I build GetData into a dll, the
Utility dll is also compiled into the GetData\Debug folder. I copy them over
to my webserver, in a MyComponents directory. Then I compile PlaceOrders and
copy that over to the MyComponents directory on the webserver. I don't copy
the PlaceOrders \Debug version of Utility dll.

I then load my GetData and PlaceOrders components into COM+ using regsvcs.exe.

GetData works fine, but PlaceOrders cannot use the Utility dll. How can I
make these two components share the same dll?

The error returned is:
"error '80131040'

The located assembly's manifest definition with name
'SML.LON.Shared.Utility' does not match the assembly reference. "

I've tried using the Utility dll from the Utility/debug folder, but only the
Serviced Component I compiled last will successfully execute.

I think I'm overlooking something simple, as I don't think this should be
that difficult.

Thanks in advance
 
Hi,

The simplest option would be to install the Utility dll to the GAC.
 
Back
Top