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 实例的名称。您可以通过查看您计算机上的Services,找到StreamInsight,快速查看您的实例名称是什么,括号中显示的名称就是您的实例名称。

于 2014-01-20T00:07:41.383 回答