>>>我使用 HttpWebRequest 进行异步请from which server? are you also controlling the server? does it fail on all URLs? if it is your own server, make sure the proper headers are being sent back, for example, CONTENT_LENGTH header, see a similar problem at
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=621fd525.0306131459.22d782d0%40posting.google.com
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=621fd525.0306131459.22d782d0%40posting.google.com
解决方案 »
- 这样的团队开发模式(流程)用在实际项目中行的通吗?
- C#桌面应用程序中通过 select语句在 access 中得到的数据怎样与 dataGridview 绑定
- 用C#完成一个计算,帮忙看一下!!
- 控件改变parent的问题
- 紧急求助!!!!!!!~~~
- c#中配置文件的链接字符串修改后如何更新properties中的相应属性值
- 关于水晶报表的问题,高手帮个忙
- 很急的问题,如何用c#得到那些通过web访问的客户端计算机名称(不要ip)(在线等待)
- 救命啊!
- 运行Asp.Net需要什么条件?
- 请高手看看,委托问题,有简单代码;怎么没有输出;通过Dos编译;也就是csc *.cs;怎么没有相应的输出,有详细的说明和原码谢谢!在线等
- 请大侠帮忙看看这个问题:DataGrid中,点击单元格选中整行,为什么总是偶尔选中?
No, the server is a remote third party IIS server.>>>does it fail on all URLs?
It works perfectly on most of the URLS and breaks suddenly on certain URL. I can't find anything wrong with the failed URL.The most frustrating part is, when the exact error occurs, a 'System.ExecutionEngineException' exception also raised, the exception then take down the whole application and ask me for a JIT debug.
错误不是可以catch吗,catch之后重置连接看看
http://support.microsoft.com/default.aspx?scid=kb;en-us;824210Managing Unhandled Exceptions in .NET
http://www.codeproject.com/dotnet/unhandledexceptions.asp
Let me show you the detail.My application is a screen scraper which request ranged urls with multi threads.
The request life cycle is the way a typical async request is,Request
BeginGetResponse
EndGetResponse
ResponseStream BeginRead
ResponseStream EndRead
and so on...I set up try..catch blocks in every places to catch the exception, as mater of fact, "Unable to read data from the transport connection" is what the catch block caught when bad url or bad server response encountered.The problem is when exceptions above caught one or more times, suddenly the Just-In-Time debugging window shows up.Here is the message found on JIT debugging window,"an exception 'system.executionengineexception' has occurred"when "debug" button clicked,this message poped up,
"An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll"In VS.NET 2003 debugging enviroment, the break point falls, some times on "static void Main(){}", some times on "WebRequest.Create()", some times on who knows where.I guess a unhandled fatal error which can't be caught occurs somewhere.
结帐。