1

StreamInsight 2.1 をインストールし、次のようなコードでサーバーを初期化しました

using (var server = Server.Create("Default"))

このコードを 2 つのコンソール アプリケーションに使用しました。そして、以下のようなエラーをスローします。

私が理解できないのは、アプリケーション A が機能したのに、アプリケーション B が機能しなかった理由です。

また、2 つのアプリケーションに対して 2 つのインスタンスを使用しようとしています。しかし、アプリケーション A だけが機能し、B は機能しませんでした。

A と B には設定がないことに注意してください。StreamInsight は構成を必要としなかったためです。

評価版を使用しています。

System.InvalidOperationException was caught
_HResult=-2146233079
_message=The specified StreamInsight instance 'Default' could not be found or is not valid for this product.
HResult=-2146233079
IsTransient=false
Message=The specified StreamInsight instance 'Default' could not be found or is not valid for this product.
Source=Microsoft.ComplexEventProcessing.Diagnostics
StackTrace:
   at Microsoft.ComplexEventProcessing.Diagnostics.Exceptions.Throw(Exception exception)
   at Microsoft.ComplexEventProcessing.EmbeddedServerProxy.GetInstanceWithExistenceCheck(String instanceName)
   at Microsoft.ComplexEventProcessing.EmbeddedServerProxy..ctor(String instanceName)
   at Microsoft.ComplexEventProcessing.Server.Create(String instanceName)
   at StreamInsightDemo.StreamMaker.Run(String symbol, RandomDataProvider randomDataProvider) in c:\Users\Vu Nguyen\Documents\Visual Studio 2013\Projects\StreamInsightDemo\StreamInsightDemo\StreamMaker.cs:line 83
InnerException: 
4

1 に答える 1

0

"Server.Create()" メソッドを使用した場合は、StreamInsight をインストールしたときに入力した StreamInsight インスタンスの名前を渡す必要があります。コンピューターのサービスを見て、StreamInsight を見つけると、インスタンスの名前が何であるかをすぐに確認できます。括弧内に表示される名前は、インスタンスの名前です。

于 2014-01-20T00:07:41.383 に答える