Tuesday, May 11, 2010

nServiceBus, ArcObjects

Trying to get nServiceBus working in the context of an ArcObjects application, in order to send changes to the Situs layer to the AS/400 for processing.

I changed the namespace of the project, and had to re-register it using the command:

regasm /tlb:LandfileWorkspaceExtension.tlb LandfileWorkspaceExtension.dll /codebase

That made it work again...

Some other notes to think about...

Even though the main Extension assembly (LandfileWorkspaceExtension.dll) can be debugged based on the information provided during regasm registration, all the dependent assemblies had to be copied into the ArcMap directory. Otherwise, the Extension failed Initialization without any error message because ArcMap could not resolve the dependencies.

nServiceBus has to be configured in ArcMap.exe.config because ArcMap is the host process for the nServiceBus assemblies. Forgetting the config file caused "No Endpoint Configured" errors.

See the Installation section of this page for installing NServiceBus.Host.exe as a Windows Service: http://www.nservicebus.com/GenericHost.aspx

No comments:

Post a Comment