2016-06-27 3 views
2

System.NullReferenceExceptionが発生しています。私はStreamPorviderをファイルconfigとコードで追加しようとしています。 GetGrain()のような他のメソッドはうまくいきます。Orleans.GrainClient.GetStreamProviders()とOrleans.GrainClientGetStream()を呼び出した後、Orleans.GrainClient.GetStreamProviders()が動作しません

私のconfigファイル:

<?xml version="1.0" encoding="utf-8" ?> 
<!-- 
    This is a sample client configuration file. 
    For a detailed reference, see "Orleans Configuration Reference.html". 
--> 
<ClientConfiguration xmlns="urn:orleans"> 
    <GatewayProvider ProviderType="Config"/> 
    <Gateway Address="localhost" Port="30000"/> 
    <Statistics MetricsTableWriteInterval="30s" PerfCounterWriteInterval="30s" LogWriteInterval="300s" WriteLogStatisticsToTable="true"/> 
    <StreamProviders> 
    <Provider Type="Orleans.Providers.Streams.SimpleMessageStream.SimpleMessageStreamProvider" Name="PubSubType" FireAndForgetDelivery="false"/> 
    <!--<Provider Type="Orleans.Providers.Streams.Persistent.AzureQueueStreamProvider" Name="AzureQueueProvider" DataConnectionString=""/> --> 
    </StreamProviders> 
</ClientConfiguration> 

とエラースタックトレース

[HttpException(0x80004005が):オブジェクトのインスタンスに設定されていないオブジェクト参照]

System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9964625 
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339 
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296 

[HttpException (0x80004005): Object reference not set to an instance of an object.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9946132 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261 
+0

これはどのバージョンですか? – BozoJoe

答えて

0

はあなたが必要としますクライアントだけでなく、サイロ構成でも同じStreams構成を使用できます。 名前とすべてのパラメータが一致していることを確認してください(セクションをコピーして貼り付けてください))

関連する問題