2014-01-17 19 views
1

我安裝的StreamInsight 2.1和init的服務器在這樣的代碼指定的StreamInsight實例無法找到或不適用於此產品

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: 
+0

找到了解決辦法嗎? – gh0st

回答

0

是否使用了「Server.Create()」方法,你必須通過你,當你安裝的StreamInsight進入的StreamInsight實例的名稱。通過查看計算機上的服務,您可以快速查看實例的名稱,找到StreamInsight,並且括號中顯示的名稱就是您的實例的名稱。

+0

是的,我做到了。我明白了,而且我已經在StreamInsight中檢查實例名稱。這裏似乎沒有錯......這很奇怪。我正在嘗試今天再次調試,並儘快更新信息。 –