WCF客戶端無法訪問服務原因之二 連線數問題

2021-08-24 18:29:03 字數 2872 閱讀 2636

如果出現以下錯誤資訊,極有可能是連線數過多,wcf配置檔案預設為10個連線數,如果連線服務的客戶端超過10個後,將訪問不到服務.資訊如下:

system.timeoutexception: 請求通道在等待 00:01:00 以後答覆時超時。增加傳遞給請求呼叫的超時值,或者增加繫結上的 sendtimeout 值。分配給此操作的時間可能是更長超時的一部分。 ---> system.timeoutexception: 對「http://localhost:8731/wcftest/service1/」的 http 請求已超過為 00:01:00 分配的超時。為此操作分配的時間可能是較長超時的一部分。 ---> system.net.webexception: 操作超時

在 system.net.httpwebrequest.getresponse()

在 system.servicemodel.channels.httpchannelfactory.httprequestchannel.httpchannelrequest.waitforreply(timespan timeout)

--- 內部異常堆疊跟蹤的結尾 ---

在 system.servicemodel.channels.httpchannelutilities.processgetresponsewebexception(webexception webexception, httpwebrequest request, httpabortreason abortreason)

在 system.servicemodel.channels.httpchannelfactory.httprequestchannel.httpchannelrequest.waitforreply(timespan timeout)

在 system.servicemodel.channels.requestchannel.request(message message, timespan timeout)

--- 內部異常堆疊跟蹤的結尾 ---

server stack trace:

在 system.servicemodel.channels.requestchannel.request(message message, timespan timeout)

在 system.servicemodel.channels.clientreliablechannelbinder`1.requestclientreliablechannelbinder`1.onrequest(trequestchannel channel, message message, timespan timeout, maskingmode maskingmode)

在 system.servicemodel.channels.clientreliablechannelbinder`1.request(message message, timespan timeout, maskingmode maskingmode)

在 system.servicemodel.channels.clientreliablechannelbinder`1.request(message message, timespan timeout)

在 system.servicemodel.security.securitysessionclientsettings`1.securityrequestsessionchannel.request(message message, timespan timeout)

在 system.servicemodel.dispatcher.requestchannelbinder.request(message message, timespan timeout)

在 system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object ins, object outs, timespan timeout)

在 system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object ins, object outs)

在 system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation)

在 system.servicemodel.channels.servicechannelproxy.invoke(imessage message)

exception rethrown at [0]:

在 system.runtime.remoting.proxies.realproxy.handlereturnmessage(imessage reqmsg, imessage retmsg)

在 system.runtime.remoting.proxies.realproxy.privateinvoke(messagedata& msgdata, int32 type)

在 wcfclient.servicereference1.iservice1.dowork(string str)

在 wcfclient.servicereference1.service1client.dowork(string str) 位置 f:\sss\wcftest\wcfclient]\service references\servicereference1\reference.cs:行號 50

在 wcfclient.program.main(string args) 位置 f:\sss\wcftest\wcfclient]\program.cs:行號 19

客戶端無法訪問tfs自定義報表

處理報表時出錯。對資料集 datasource1 執行查詢失敗。有關此錯誤的詳細資訊,請導航到本地伺服器上的報表伺服器或啟用遠端錯誤 讓人很是鬱悶查了好多資料,終於在乙個部落格得到了點啟示,o o 1 在伺服器上開啟sqlserver2005鏈結伺服器reporting services 2 修改d...

專案部署到linux中,但是客戶端無法訪問

一 防火牆的狀態。有時開啟防火牆外部不能訪問。防火牆的命令 檢視防火牆狀態 systemctl status firewalld 開啟防火牆 systemctl start firewalld 關閉防火牆 systemctl stop firewalld 開啟防火牆 service firewall...

WCF客戶端和服務的實現

wcf客戶端和服務 伺服器端 定義和實現服務契約 為服務型別構建servicehost例項,暴露endpoints 開啟通訊通道 客戶端 需要服務契約的乙個副本和關於endpoints的資訊 為特定的endpoint構建通訊通道並且呼叫操作 客戶端的客戶程序中,有乙個 該 主要功能是完成客戶程序和主...