我安装了 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: