2011-12-09 4 views
1

「NServiceBus.Host.exe」を呼び出すと、以下のエラーが表示されます。問題はitextsharp.dllのようです。私は私が使用できることを読んだNServiceBusファイルまたはアセンブリを読み込めませんでした。

「Configure.With(AllAssemblies.Except(」itextsharp.dll「))... //あなたの設定の残りの部分」

しかし、私は次のサンプルを使用していますこのプロパティを追加する場所は不明です。

http://docs.particular.net/samples/web/asp-mvc-application/

未処理の例外:行0:Magnum.StateMachine.StateMachineException:でTopshelf.Internal.ServiceController 1[[NServiceBus.Host.Internal.GenericHo st, NServiceBus.Host, Version=2.6.0.1504, Culture=neutral, PublicKeyToken=9fc386 479f8a226c]] during state Initial while handling OnStart ---> System.Exception: Exception when starting endpoint, error has been logged. Reason: Could not load file or assembly 'file:///D:\dev\MYSITE\MYSITE.EStore\EStore.Server\bin\Debug\itexts harp.dll' or one of its dependencies. Operation is not supported. (Exception fro m HRESULT: 0x80131515) at NServiceBus.Host.Internal.GenericHost.Start() in d:\BuildAgent-02\work\20b 5f701adefe8f8\src\host\NServiceBus.Host\Internal\GenericHost.cs:line 90 at Magnum.StateMachine.EventActionList 1.Execute(Tステートマシン、イベントイベント、 オブジェクトパラメータ)で ED回の出現例外 ---内部例外スタックトレースの終わり---

サーバースタックトレース:Magnum.StateMachine.ExceptionActionDictionary 1.HandleException(T stateMac hine, Event event, Object parameter, Exception exception) in :line 0 at Magnum.StateMachine.EventActionList 1.Execute(Tステートマシン、イベントイベント、で でオブジェクトパラメータ):行のMagnum.StateMachine.State 1.RaiseEvent(T instance, BasicEvent 1 eevent、Obの JECT値)で0 :行にMagnum.StateMachine.StateMachine`1.RaiseEvent(イベントが発生)で0 :システムのライン0 System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessageで.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage( のIntPtr MD、[]引数、オブジェクトのサーバ、のInt32 methodPtr、ブールfExecuteInCont extは、[] & outArgsオブジェクト物体) (IMes セージmsg、Int32 methodPtr、ブールfExecuteInContext)

[0]で再スローされた例外: System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessageでTopshelf.InternalでSystem.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(のMessageData & msgDa TA、のInt32型) で(IMessageがは メッセージ、IMessageがretMsgをREQ) .ServiceControllerProxy.Start() のTopshelf.Internal.ServiceCoordinator.Start()d:\ dev \ open-source \ topshell f \ src \ Topshelf \ Internal \ ServiceCoordinator.cs:行54 のTopshelf.Internal.Hosts .ConsoleHost.Run()in d:\ dev \ open-source \ topshelf \ s rc \ Topshelf \ Internal \ Hosts \ ConsoleHost.cs:行53 at NServiceBus.Host.Program.Main(String [] args)in d:¥BuildAgent-02¥work¥20b5 f701adefe8f8¥src¥host¥NServiceBus.Host¥Program.cs:line 103

答えて

4

NserviceBusホストが起動すると、指定したアセンブリからすべてのタイプを取得しようとします。 提供するサンプルでは、​​NServiceBus.Configure.WithWeb()メソッドが使用されます。 これは、「itextsharp.dllが」Assembly.LoadFrom(ファイルを呼び出すことにより、これが行われる(のAppDomainにロードすることはできませんので

あなたはexcpetionを取得NServiceBus.Configure.With(AppDomain.CurrentDomain.DynamicDirectory)を呼び出すことと同じです.FullName)メソッド)。

問題を解決するには、NServiceBus.Configure.With()オーバーロードのいずれかを使用してスキャンする必要のあるアセンブリを手動で指定します。

関連する問題