2017-07-06 104 views
0

服務無法啓動。 System.ServiceModel.CommunicationException: 服務端點無法偵聽URI 'net.tcp:// ssis01:9176/SSISService_v2_0 /',因爲訪問被拒絕。 驗證是否允許當前用戶在SMSvcHost.exe.config的相應 allowAccounts部分中進行訪問。 ---> System.ComponentModel.Win32Exception:訪問在 System.ServiceModel.Activation.SharedMemory.Read被拒絕(字符串名稱,字符串& 內容)在 System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.ReadEndpoint(字符串 sharedMemoryName,字符串& listenerEndpoint)---內 異常堆棧跟蹤的末尾在 System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.ReadEndpoint(字符串 sharedMemoryName,字符串& listenerEndpoint)在 System.ServiceModel.Channels.SharedConnectionListener .SharedListenerProxy.HandleServiceStart(布爾型 isReconnectin g)at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Open(Boolean isReconnecting)at System.Ser。服務無法啓動拒絕訪問

我曾嘗試 我不是管理員,也許這是問題,對於

1)allowAccounts部分加入我的用戶的SID在SMSvcHost.exe.config。然後重新啓動服務第一NETSharing然後SSISService

2)當啓動ssis服務時,它會引發一個錯誤「服務在本地計算機上啓動和停止,某些服務如果沒有被其他服務和程序使用,則會自動停止。從日誌

這裏是SMSvcHost.exe.config

配置文件
<?xml version="1.0" encoding="utf-8"?> 
<!-- The configuration file for SMSvcHost.exe --> 
<configuration> 
    <runtime> 
     <gcConcurrent enabled="false" /> 
    </runtime> 
    <system.serviceModel> 
     <!-- SMSvcHost ETW traces are redirected by default to an etwProviderId different from WCF's default. 
      To trace to the default provider, remove the etwProviderId attribute below. --> 
     <diagnostics performanceCounters="Off" etwProviderId="{f18839f5-27ff-4e66-bd2d-639b768cf18b}"/> 
    </system.serviceModel> 
    <system.serviceModel.activation> 
     <net.tcp listenBacklog="10" maxPendingConnections="100" maxPendingAccepts="2" receiveTimeout="00:00:10" teredoEnabled="false"> 
     <allowAccounts> 
      <add securityIdentifier="S-1-5-21-873128402-3342024598-2051005476-53521"/> 
     </allowAccounts> 
     </net.tcp>   
    </system.serviceModel.activation>  
</configuration> 
+0

我也嘗試在CMD命令提示符下添加服務Netsh http add urlacl url = http:// +:9176/SSISService_V2_0 user = domain \ user – user3920526

+0

WCF服務只能在管理員權限下運行。從管理員cmd提示符運行服務主機,或以管理員身份運行VS。 –

回答

0

我花了一段時間來解決這個問題

第一步。在運行命令窗口中regedit.exe

第2步:轉到位置(路徑位於屏幕截圖的底部),以獲取Adminstrator的SID。 enter image description here

第3步:複製Admin的SID,在這裏您將看到所有登錄用戶的SID。但是您只希望它用於ADMIN,如何知道它是admin? 右鍵單擊服務並轉到屬性,然後單擊登錄選項卡。 如果您看到屏幕截圖1,您將會看到ProfileImagePath具有相同的名稱DataSVC

enter image description here

步驟3:主要部分配置的變化 添加這行代碼與SMSvcHost.exe.config的ADMIN SID。

<system.serviceModel.activation> 
     <net.tcp listenBacklog="10" maxPendingConnections="100" maxPendingAccepts="2" receiveTimeout="00:00:10" teredoEnabled="false"> 
     <allowAccounts> 
      <add securityIdentifier="**ADMIN SID ID HERE** "/> 
     </allowAccounts> 
     </net.tcp>   
    </system.serviceModel.activation> 

第5步:先重新啓動NETTCP共享,然後重新啓動其他服務。應該解決這個錯誤的問題。謝謝大家