Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Problem of throwing exception (System.Net.Sockets.OverlappedAsyncResult::Complet ionPortCallback) (http://www.velocityreviews.com/forums/t782442-problem-of-throwing-exception-system-net-sockets-overlappedasyncresult-completionportcallback.html)

VincentWong 12-29-2003 07:54 AM

Problem of throwing exception (System.Net.Sockets.OverlappedAsyncResult::Complet ionPortCallback)
 
hi all,

We're getting a security exception (An unhandled exception of type
'System.Security.SecurityException' occurred in mscorlib.dll) on a
asychronous
callback(System.Net.Sockets.OverlappedAsyncResult: :CompletionPortCallback).T
his exception occurs when our control is embedded within an IE web page. A
connection is established after calling a web service, it keeps opened for a
period of time(observd by using netstat), it seems that when the connection
is closed(timed out), the exception is thrown. When the web service is
called again, no new connection is established(observed by using netstat),
then an exception, "The operation has timed-out", is thrown. It seems that
it tries to use the closed connection and it only happens when the control
is embedded in the IE.

Anybody have an idea solving this problem?

Thanks

Vincent



VincentWong 12-29-2003 09:32 AM

Re: Problem of throwing exception (System.Net.Sockets.OverlappedAsyncResult::Complet ionPortCallback)
 
Hi all,

The problem is solved by setting the KeepAlive property of the
WebRequest
to False which force a new connection to be created for each call.

Thanks

Vincent
"VincentWong" <vincent@no_email.com> wrote in message
news:OjqRJEezDHA.4064@tk2msftngp13.phx.gbl...
> hi all,
>
> We're getting a security exception (An unhandled exception of type
> 'System.Security.SecurityException' occurred in mscorlib.dll) on a
> asychronous
>

callback(System.Net.Sockets.OverlappedAsyncResult: :CompletionPortCallback).T
> his exception occurs when our control is embedded within an IE web page. A
> connection is established after calling a web service, it keeps opened for

a
> period of time(observd by using netstat), it seems that when the

connection
> is closed(timed out), the exception is thrown. When the web service is
> called again, no new connection is established(observed by using netstat),
> then an exception, "The operation has timed-out", is thrown. It seems that
> it tries to use the closed connection and it only happens when the control
> is embedded in the IE.
>
> Anybody have an idea solving this problem?
>
> Thanks
>
> Vincent
>
>





All times are GMT. The time now is 04:26 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.