WCF数据量在实际应用中错误解决方法

开发 开发工具
WCF数据量在实际应用中会出现一些诸如IIS服务器返回403错误的问题。那么如何才能正确的解决呢?在这里将会给出一些参考意见。

我们在使用WCF开发工具进行程序开发时通常会遇到一些问题需要及时解决。我们今天主要为大家介绍一下WCF数据量的出现的一些问题解决方法,希望可以帮助大家从中获得一些帮助,更加充分的掌握这一方面的知识。

昨天下午在作WCF数据量并发的测试,同时启动40个客户端进程,在碰到比较耗时的服务处理时,IIS服务器返回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)  

通过各种方法监控WCF数据量的错误消息,可是这些出错的调用都没有到达WCF,所有监测WCF的地方和WCF的TraceLog都没有任何的错误。随后又拿出终极法宝wireshark,抓包也看不到任何错误,就是客户端请求了服务器一下,然后IIS就返回了403错误,并报告上面的异常。

于是把WCF的服务部署到了Win2003server的iis6下面。这样程序正常运行不会有任何错误。于是查了一下IIS5.1 造成403错误的原因。原来是IIS5.1的最大连接数的问题。于是总结了一下:

同时修改了几个方面:

1.windowsXP SP3的TCP连接数,改为512。(有专门的工具破解)

2.WCF数据量会话数,调用数和实例数

【编辑推荐】

  1. WCF线程安全性问题有所解决
  2. WCF发布订阅实质内容剖析
  3. WCF状态应用基本概念简单描述
  4. WCF控制事务具体操作代码解读
  5. WCF框架基本解析方式介绍
责任编辑:曹凯 来源: qqread.com
相关推荐

2011-05-16 09:54:22

mysql1067错误

2010-02-24 16:30:52

WCF常见错误

2009-12-08 15:19:58

WCF大数据量

2010-02-23 10:25:29

2009-12-18 11:03:45

Ruby watir环

2013-08-13 13:38:13

Android错误解决

2009-12-21 14:58:57

WCF用户密码认证

2009-12-08 09:21:13

WCF数据量

2010-03-01 10:45:59

WCF集合类

2017-04-07 09:02:06

Spark方法优化

2010-02-25 17:22:39

WCF服务行为

2010-03-02 17:35:20

WCF服务加载

2010-02-24 14:05:08

WCF openati

2009-11-10 14:45:14

Windows 7输序列号解决

2019-10-27 23:10:33

Oracle数据库分布式事务

2010-03-01 13:06:49

WCF继承

2018-07-03 10:13:32

DNS错误Windows7

2010-02-22 11:02:06

WCF元数据

2010-02-26 15:53:35

WCF套接字连接中断

2010-02-26 10:56:06

WCF Stream
点赞
收藏

51CTO技术栈公众号