dependency injection - Castle Windsor cannot find System.Messaging -


i realise question similar this one, unfortunately doesn't quite solve problem.

i have console app following in castle config section:

<component id="legacymessageformatter"             service="system.messaging.imessageformatter, system.messaging"             type="msmqlogprocessor.core.services.legacymessageformatter, msmqlogprocessor.core"/> 

i got exception "the type name system.messaging.imessageformatter, system.messaging not located." when newing windsorcontainer so:

var container = new windsorcontainer(new xmlinterpreter()); 

i've set copy local true on system.messaging. works when hit f5. however, when publish console app , run on production box same issue. cannot see system.messaging dll in applicationfiles folder after install, presumably because thinks it's in gac.

i've tried copying dll folder, still no joy.

any ideas i'm missing? idea specify system assembly service?

try using qualified type name:

<component id='legacymessageformatter'  service='system.messaging.imessageformatter, system.messaging, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a'  type='...'/> 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -