0

箱から出して動作するNESサンプルを使用しています。次に、NServiceBus 2.5バージョンを古い2.0と交換しましたが、MVCアプリケーションの起動時に次のエラーが発生します。

"オブジェクト参照がオブジェクト インスタンスに設定されていません。" NES.EventConverterFactory..ctor()atNES.DI。<。cctor>b_ 6()in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES\DI。 cs:line 24 at NES.DependencyInjectionContainer.ResolveTService in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES \ DependencyInjectionContainer.cs:line 20atNES.DependencyInjectionContainer。<>c _DisplayClass4 2.<Register>b__3() in C:\Users\werner\Downloads\elliotritchie-NES-9a56ad8\elliotritchie-NES-9a56ad8\src\NES\DependencyInjectionContainer.cs:line 45 at NES.DependencyInjectionContainer.Resolve[TService]() in C:\Users\werner\Downloads\elliotritchie-NES-9a56ad8\elliotritchie-NES-9a56ad8\src\NES\DependencyInjectionContainer.cs:line 20 at NES.DependencyInjectionContainer.<>c__DisplayClassa4.b_9()in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES \ DependencyInjectionContainer.cs:line 59 at NES.DependencyInjectionContainer.ResolveTService in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES \ DependencyInjectionContainer.cs:line 20atNES.DependencyInjectionContainer。<>c_DisplayClass4`2.b__3()in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES \ DependencyInjectionContainer.cs:line 45 at NES.DependencyInjectionContainer.ResolveTService in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES \ DependencyInjectionContainer.cs:line 20 at NES.UnitOfWorkFactory.Begin()in C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ src \ NES \ UnitOfWorkFactory.cs:C:\ Users \ werner \ Downloads \ elliotritchie-NES-9a56ad8 \ elliotritchie-NES-9a56ad8 \ srcのNES.NServiceBus.MessageModule.HandleBeginMessage()の18行目\ NES \ NServiceBus \ MessageModule.cs:line 10 at NServiceBus.Unicast.UnicastBus.TransportStartedMessageProcessing(Object sender、EventArgs e)atNServiceBus.Unicast.Transport.Msmq.MsmqTransport。NServiceBus.Unicast.Transport.Msmq.MsmqTransport.Process()のReceiveFromQueue()

これは、Global.asax.csが「AreaRegistration.RegisterAllAreas();」にヒットしたときに発生します。最終的に、エラーは「EventConverterFactory.cs」の13行目で発生し、静的コンストラクターはnullである「Global.TypesToScan」を反復しようとします。

このサンプルを実行する方法を知っている人はいますか?まったく同じコードがNSB2.5アセンブリで機能するように見えるのは奇妙です...

ヴェルナー

4

1 に答える 1

0

.NES() 拡張子で初期化されていないエンドポイントでメッセージが処理されているように見えます。

于 2011-09-17T18:25:44.407 に答える