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: