Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2004

Tip: Looking for answers? Try searching our database.

system.net.webexception  The underlying connection was closed: An  unexpected error occurred on a send.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Snell - 20 Sep 2004 16:02 GMT
Let me begin by saying that per Q821156, I have updated my web
server/development machine with .NET Framework 1.1 SP1.  I don't know
if I still need to but I have also overridden GetWebRequest to set the
KeepAlive false as directed in Q819450.  I am still receiving the
above-mentioned error when one of the parameters of my web service
contains a large xml string inside.  By the way, I am calling this
asynchronously.

I am nearing the end of my rope.  The only other thing I can think of
doing if I cannot resolve this is to "chunk" the data over
synchronously in 512K chuncks or something.

Any ideas?  Have I missed something?
Rob Snell - 21 Sep 2004 01:49 GMT
And to further complicate things, I don't think I can "chunk" it over
either.  I guess I have to treat these objects as stateless, ie. I
cannot do something like:

myObj.Chunk(data)
myObj.Chunk(moredata)
myObj.OperateOnData()

Any ideas appreciated!

> Let me begin by saying that per Q821156, I have updated my web
> server/development machine with .NET Framework 1.1 SP1.  I don't know
[quoted text clipped - 9 lines]
>
> Any ideas?  Have I missed something?
Michael - 25 Sep 2004 01:41 GMT
Rob,

I am struggling on this one for long time. We applied the MS patch from
Q821156, since we are using Integrated windows security, we can not turn off
the KeepAlive, but we add a retry logic, like your app, we are calling the
web service asynchronously. The retry did not work well, maybe we put the
rety delay too short , 20 millisecond. What MS told us was retry should
reopen a connection to the server,  but looks like it didn't .
We are running Window 2003 IIS6. Framework 1.1. No SP1 yet. Very frusting
scenario. I am think about turning the app to sync as well , but I am not
sure this will cure the problem besides it will hurt our performance.

Mike

> Let me begin by saying that per Q821156, I have updated my web
> server/development machine with .NET Framework 1.1 SP1.  I don't know
[quoted text clipped - 9 lines]
>
> Any ideas?  Have I missed something?
Rob Snell - 26 Sep 2004 17:18 GMT
Mike,

I saw the same behavior synch or asynch.  My current workaround is
just to send a path to the large xml file but of course then the
webservice and client have to touch the same file share.  This isn't a
big deal in my case but I don't like the workaround.  But, none of
this addresses the fundamental problem.

Cheers,
Rob

> Rob,
>
[quoted text clipped - 23 lines]
> >
> > Any ideas?  Have I missed something?
Michael - 27 Sep 2004 01:04 GMT
Rob,

Thanks for the reply.
There is one more interesting thing happened during the connection closed
scenario, the web servicce actually DID the work , even though from the
client side, it report a WebException, I guess it is because the
communication is severed, that's why I said retry did not work well. Just
FYI.

I agree with you , after googled two days, my final decision is do nothing,
there is no way to prevent this kind of scenario from happening, in our
production environment, it allows retry, as long as conneciton closed is not
happening too frequently,we are fine. Also, I tend to give the challenge to
our system engineer group to resolve the mystry of who close the connection.
For application, we have done the max we can.

Mike

> Mike,
>
[quoted text clipped - 36 lines]
>> >
>> > Any ideas?  Have I missed something?
Joel Zhou - 28 Sep 2004 14:16 GMT
I have a similar issue, the error is on "An unexpected error occurred
on a receive" rathan than "sent". I was able to workaround the problem
by increasing the "Connection timeout" (IIS Manager -> Web Site ->
Properities).

The error also happens with both sync and async call, and it only
happens on Win2003 with IIS 6.0 (not on WinXP with .Net 1.1). You can
see more detail in link I posted below. I posted a question yesterday
and hopefully I will get some reply.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3bdcbe2f.0409271329.3
cfd48cc%40posting.google.com&rnum=1&prev=/groups%3Fq%3D%2522The%2520underlying%2
520connection%2520was%2520closed%2522%2520joel%2520zhou%26hl%3Den%26lr%3D%26ie%3
DUTF-8%26sa%3DN%26tab%3Dwg


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.