ASP.NET错误“服务器中止的equest上下文”从不同子网访问服务时发生 [英] ASP.NET error "equest context being aborted by the server " occurs when accessing service from different subnet

查看:59
本文介绍了ASP.NET错误“服务器中止的equest上下文”从不同子网访问服务时发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好......



我创建了一个ASP.NET Web服务。将其部署到Windows Server 2012中,并且在使用本地LAN(相同子网)访问时工作正常。但是,当使用相同的应用程序(客户端)通过另一个子网上的无线网络访问服务时,应用程序会在一段时间后触发此错误:



An接收到http://的http响应时出错...这可能是由于服务端点绑定不使用http协议。这也可能是由于服务器中止了http请求上下文(可能是由于关闭服务)



现在,我确实检查了互联网是否存在此错误,并且大多数解决方案都涉及增加缓冲区大小和maxItemsInObjectGraph。我将所有这些参数设置为max,但问题仍未解决。



我还在另一台Windows Server 2012上安装了该应用程序的一个版本,并创建了一个测试应用程序,可以从服务器上连续下载文件。它创建了30个客户端,每个客户端加载100个文件(30个客户端同时发送加载请求),每个文件大小为1MB。它完美无缺,没有错误。所以,似乎web服务及其配置都很好。



当我将服务器的IP更改为客户端的同一子网时,问题就消失了。



我认为问题可能与路由器有关,我可能错了。



使用的路由器是:Cisco 3750G系列



请咨询。

Hi there...

I created an ASP.NET web service. Deployed it into the windows server 2012, and it worked fine when being accessed using the local lan (same subnet). However, when using the same application (client) to access the service via wireless network which is on another subnet, the application triggers this error after a while:

"An error occurred while receiving the http response to http:// ..... This could be due to the service endpoint binding not using the http protocol. This could also be due to an http request context being aborted by the server (possibly due to the service shutting down)"

Now, I did check the internet for this error, and most of the solutions involved increasing the buffer size, and maxItemsInObjectGraph. I set all these parameters to max, but the problem is not solved.

Also I installed a version of the application on another windows server 2012, and created a testing application that continuously download files from the server. It creates 30 clients, each loading 100 files (30 clients sending loading requests at the same time), each file of size 1MB. It worked perfectly fine without an error. So, it seems that the webservice and its configuration is fine.

When I changed the IP of the server to be at the same subnet of the client, the problem disappeared.

I assume the issue might be related to the router, I might be wrong.

The router being used is: Cisco 3750G series

Kindly advice.

推荐答案

您是否正在使用 Server.Transfer 从一个页面移动到另一个页面?如果是,则尝试使用 Response.redirect 。我也有同样的问题用 Response.redirect 替换 Server.Transfer 解决了我的问题
Are you using Server.Transfer for moving from one page to another? if yes, then try using Response.redirect. I too had same problem replacing Server.Transfer with Response.redirect resolved the issue for me


这篇关于ASP.NET错误“服务器中止的equest上下文”从不同子网访问服务时发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆