日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
WCF數(shù)據(jù)量在實(shí)際應(yīng)用中錯(cuò)誤解決方法

我們?cè)谑褂肳CF開(kāi)發(fā)工具進(jìn)行程序開(kāi)發(fā)時(shí)通常會(huì)遇到一些問(wèn)題需要及時(shí)解決。我們今天主要為大家介紹一下WCF數(shù)據(jù)量的出現(xiàn)的一些問(wèn)題解決方法,希望可以幫助大家從中獲得一些幫助,更加充分的掌握這一方面的知識(shí)。

為宣州等地區(qū)用戶提供了全套網(wǎng)頁(yè)設(shè)計(jì)制作服務(wù),及宣州網(wǎng)站建設(shè)行業(yè)解決方案。主營(yíng)業(yè)務(wù)為成都網(wǎng)站建設(shè)、做網(wǎng)站、宣州網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專(zhuān)業(yè)、用心的態(tài)度為用戶提供真誠(chéng)的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會(huì)得到認(rèn)可,從而選擇與我們長(zhǎng)期合作。這樣,我們也可以走得更遠(yuǎn)!

昨天下午在作WCF數(shù)據(jù)量并發(fā)的測(cè)試,同時(shí)啟動(dòng)40個(gè)客戶端進(jìn)程,在碰到比較耗時(shí)的服務(wù)處理時(shí),IIS服務(wù)器返回403錯(cuò)誤。異常信息如下:]

 
 
 
  1. System.ServiceModel.Security.MessageSecurityException: 
  2. System.Net.HttpWebRequest.GetResponse() 
  3. System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.
    HttpChannelRequest.WaitForReply(TimeSpan timeout) 
  4. Server stack trace: 
  5. System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication
    (HttpWebRequest request, HttpWebResponse response, WebException 
    responseException, HttpChannelFactory factory) 
  6. System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReply
    Response(HttpWebRequest request, HttpWebResponse response, 
    HttpChannelFactory factory, WebException responseException) 
  7. System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.
    HttpChannelRequest.WaitForReply(TimeSpan timeout) 
  8. System.ServiceModel.Channels.RequestChannel.Request(Message message, 
    TimeSpan timeout) 
  9. System.ServiceModel.Dispatcher.RequestChannelBinder.Request
    (Message message, TimeSpan timeout) 
  10. System.ServiceModel.Channels.ServiceChannel.Call(String action, 
    Boolean oneway, ProxyOperationRuntime operation, Object[] ins, 
    Object[] outs, TimeSpan timeout) 
  11. System.ServiceModel.Channels.ServiceChannel.Call(String action, 
    Boolean oneway, ProxyOperationRuntime operation, Object[] ins, 
    Object[] outs) 
  12. System.ServiceModel.Channels.ServiceChannelProxy.InvokeService
    (IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
  13. System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 
    Exception rethrown at [0]: 
  14. System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage
    (IMessage reqMsg, IMessage retMsg) 
  15. System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
    (MessageData& msgData, Int32 type) 
  16. terminal.ViolationService.IViolationService.QueryVioImg(String vioSeq) 
  17. terminal.ViolationService.ViolationServiceClient.QueryVioImg
    (String vioSeq),terminal.Program.Main(String[] args) 

通過(guò)各種方法監(jiān)控WCF數(shù)據(jù)量的錯(cuò)誤消息,可是這些出錯(cuò)的調(diào)用都沒(méi)有到達(dá)WCF,所有監(jiān)測(cè)WCF的地方和WCF的TraceLog都沒(méi)有任何的錯(cuò)誤。隨后又拿出終極法寶wireshark,抓包也看不到任何錯(cuò)誤,就是客戶端請(qǐng)求了服務(wù)器一下,然后IIS就返回了403錯(cuò)誤,并報(bào)告上面的異常。

于是把WCF的服務(wù)部署到了Win2003server的iis6下面。這樣程序正常運(yùn)行不會(huì)有任何錯(cuò)誤。于是查了一下IIS5.1 造成403錯(cuò)誤的原因。原來(lái)是IIS5.1的最大連接數(shù)的問(wèn)題。于是總結(jié)了一下:

同時(shí)修改了幾個(gè)方面:

1.windowsXP SP3的TCP連接數(shù),改為512。(有專(zhuān)門(mén)的工具破解)

2.WCF數(shù)據(jù)量會(huì)話數(shù),調(diào)用數(shù)和實(shí)例數(shù)


當(dāng)前題目:WCF數(shù)據(jù)量在實(shí)際應(yīng)用中錯(cuò)誤解決方法
當(dāng)前鏈接:http://www.5511xx.com/article/dphepcj.html