自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

WCF數(shù)據(jù)量在實際應(yīng)用中錯誤解決方法

開發(fā) 開發(fā)工具
WCF數(shù)據(jù)量在實際應(yīng)用中會出現(xiàn)一些諸如IIS服務(wù)器返回403錯誤的問題。那么如何才能正確的解決呢?在這里將會給出一些參考意見。

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

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

  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)  

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

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

同時修改了幾個方面:

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

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

【編輯推薦】

  1. WCF線程安全性問題有所解決
  2. WCF發(fā)布訂閱實質(zhì)內(nèi)容剖析
  3. WCF狀態(tài)應(yīng)用基本概念簡單描述
  4. WCF控制事務(wù)具體操作代碼解讀
  5. WCF框架基本解析方式介紹
責(zé)任編輯:曹凱 來源: qqread.com
相關(guān)推薦

2011-05-16 09:54:22

mysql1067錯誤

2010-02-24 16:30:52

WCF常見錯誤

2009-12-18 11:03:45

Ruby watir環(huán)

2013-08-13 13:38:13

Android錯誤解決

2009-12-08 15:19:58

WCF大數(shù)據(jù)量

2010-02-23 10:25:29

2010-03-01 10:45:59

WCF集合類

2009-12-21 14:58:57

WCF用戶密碼認(rèn)證

2009-12-08 09:21:13

WCF數(shù)據(jù)量

2017-04-07 09:02:06

Spark方法優(yōu)化

2010-03-02 17:35:20

WCF服務(wù)加載

2010-02-25 17:22:39

WCF服務(wù)行為

2010-02-24 14:05:08

WCF openati

2009-11-10 14:45:14

Windows 7輸序列號解決

2019-10-27 23:10:33

Oracle數(shù)據(jù)庫分布式事務(wù)

2018-07-03 10:13:32

DNS錯誤Windows7

2010-03-01 13:06:49

WCF繼承

2010-02-26 15:53:35

WCF套接字連接中斷

2010-02-22 11:02:06

WCF元數(shù)據(jù)

2012-08-15 14:01:18

點贊
收藏

51CTO技術(shù)棧公眾號