2016-02-19 24 views
1

我託管了一個StreamInsight服務器到Windows服務。 Windows服務使用LocalSystem運行。StreamInsight:訪問被拒絕

在OnNext()方法,我有代碼訪問服務器

 using (
      var server = 
       Server.Connect(
        new EndpointAddress(@StreamInsightConfiguration.Default.StreamInsightServiceHostURL)) 
      ) 
     { 
      var application = server.Applications[StreamInsightConfiguration.Default.StreamInsightApplicationName]; 

      return application; 
     } 

在線路server.Applications [StreamInsightConfiguration.Default.StreamInsightApplicationName];我收到一條消息訪問被拒絕。

我還將NT \ SYSTEM添加到StreamInsightUsers $默認組。

如何解決這個問題?

回答

1

如果用戶在帳戶被添加到組中時登錄,用戶必須註銷,然後再次登錄才能使組成員身份生效。嘗試連接到Event Flow Debugger和其他客戶端程序中的服務器Web服務端點時,不屬於此組的用戶將收到「訪問被拒絕」錯誤。

致謝: - https://msdn.microsoft.com/en-us/library/ee378749(v=sql.111).aspx

+0

將用戶添加到該組後。我重啓了我的機器,但是這個錯誤仍然存​​在 –