服務無法啓動。 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>
我也嘗試在CMD命令提示符下添加服務Netsh http add urlacl url = http:// +:9176/SSISService_V2_0 user = domain \ user – user3920526
WCF服務只能在管理員權限下運行。從管理員cmd提示符運行服務主機,或以管理員身份運行VS。 –