Remoting: A blocking operation was interrupted by .....

J

José Joye

When I unload my appdomain, I got the following exception:

A blocking operation was interrupted by a call to WSACancelBlockingCall:
.....

My appdomain uses remoting...
From previous post, I know that I should call "RemotingServices.Disconnect"
to close the remoting channel while unloading my appdomain.
However, when I pass my object (say m_remote), there is an exception
telling:

Cannot call disconnect on a proxy.

The class "m_remote" object refers to has been created with:
soapsuds -url:http://localhost:1236/MonitoringData.rem?wsdl -nowp -gc

and looks like:
[Serializable,
SoapType(XmlNamespace=@"http://schemas.microsoft.com/clr/nsassem/FileTransfe
r/FileTransfer%2C%20Version%3D1.0.1.27735%2C%20Culture%3Dneutral%2C%20Public
KeyToken%3Dnull",
XmlTypeNamespace=@"http://schemas.microsoft.com/clr/nsassem/FileTransfer/Fil
eTransfer%2C%20Version%3D1.0.1.27735%2C%20Culture%3Dneutral%2C%20PublicKeyTo
ken%3Dnull")]
public class UFSMonitorAndControl : System.MarshalByRefObject
{
...}


Any help will be greatly appreciated :)

José
 
J

José Joye

Please ignore it.
This was caused by the AppDomain being unloaded.
According to an answer I received, it is by design that such an exception is
thrown when unloading an appDomain :-(

José
José Joye said:
When I unload my appdomain, I got the following exception:

A blocking operation was interrupted by a call to WSACancelBlockingCall:
....

My appdomain uses remoting...
From previous post, I know that I should call "RemotingServices.Disconnect"
to close the remoting channel while unloading my appdomain.
However, when I pass my object (say m_remote), there is an exception
telling:

Cannot call disconnect on a proxy.

The class "m_remote" object refers to has been created with:
soapsuds -url:http://localhost:1236/MonitoringData.rem?wsdl -nowp -gc

and looks like:
[Serializable,
SoapType(XmlNamespace=@"http://schemas.microsoft.com/clr/ns... Version=1.0.1.27735, Culture=neutral, Public
KeyToken%3Dnull",
XmlTypeNamespace=@"http://schemas.microsoft.com/clr/ns...ion=1.0.1.27735, Culture=neutral, PublicKeyTo
ken%3Dnull")]
public class UFSMonitorAndControl : System.MarshalByRefObject
{
...}


Any help will be greatly appreciated :)

José
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top