473,657 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

A blocking operation was interrupted by a call to WSACancelBlocki ngCall:
.....

My appdomain uses remoting...
From previous post, I know that I should call "RemotingServic es.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(XmlNam espace=@"http://schemas.microso ft.com/clr/nsassem/FileTransfe
r/FileTransfer%2C %20Version%3D1. 0.1.27735%2C%20 Culture%3Dneutr al%2C%20Public
KeyToken%3Dnull ",
XmlTypeNamespac e=@"http://schemas.microso ft.com/clr/nsassem/FileTransfer/Fil
eTransfer%2C%20 Version%3D1.0.1 .27735%2C%20Cul ture%3Dneutral% 2C%20PublicKeyT o
ken%3Dnull")]
public class UFSMonitorAndCo ntrol : System.MarshalB yRefObject
{
...}
Any help will be greatly appreciated :-)

José

Nov 16 '05 #1
1 2754
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" <jo*******@KILL THESPAMSbluewin .ch> wrote in message
news:ee******** *****@TK2MSFTNG P10.phx.gbl...
When I unload my appdomain, I got the following exception:

A blocking operation was interrupted by a call to WSACancelBlocki ngCall:
....

My appdomain uses remoting...
From previous post, I know that I should call "RemotingServic es.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(XmlNam espace=@"http://schemas.microso ft.com/clr/nsassem/FileTransfe r/FileTransfer%2C %20Version%3D1. 0.1.27735%2C%20 Culture%3Dneutr al%2C%20Public KeyToken%3Dnull ",
XmlTypeNamespac e=@"http://schemas.microso ft.com/clr/nsassem/FileTransfer/Fil eTransfer%2C%20 Version%3D1.0.1 .27735%2C%20Cul ture%3Dneutral% 2C%20PublicKeyT o ken%3Dnull")]
public class UFSMonitorAndCo ntrol : System.MarshalB yRefObject
{
...}
Any help will be greatly appreciated :-)

José


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5677
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere 4.0, SourceOffSite 4.1, VSS Connect 1.5, SourceXT 2.1, VSS Remoting 2.5,
0
3282
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
3
10392
by: Logan McKinley | last post by:
I have a C# program that uses blocking sockets and want to allow the user to stop the server. The problem I am having is the socket blocks on -------------------------------------------------------------- listener = new System.Net.Sockets.TcpListener(6254); listener.Start(); //skt is a socket skt =listener.AcceptSocket(); <--- this line blocks -------------------------------------------------------------- I attempt to stop the thread...
1
354
by: José Joye | last post by:
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:
1
22739
by: Sagaert Johan | last post by:
Hi Ii have a simple server thread in an app that listens for connections, for some unclear reason an exception is thrown every now and then : 'A blocking operation was interrupted by a call to WSACancelBlockingCall ' Any suggestion why this may happen ? The Exception is thrown by the svr.AcceptTcpClient() method See source below.
0
4828
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace 'http://schemas.microsoft.com/clr/nsassem/RemoteServer/RemoteServer%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'. Unable to import...
1
8634
by: Sagaert Johan | last post by:
Hi I tried to get around the problem on an un-available remoting server bij using the async methods (BeginInvoke) but noticed that this call is blocking if the remote server is not available. the the client throws an Exception after over 48 seconds, way to long . The async method seems to be only async when the remote operation takes a lot of time to execute.
13
1884
by: José Joye | last post by:
Hello, What is the best way to stop a remoting server (Singleton SAO) that has been started with RemotingConfiguration.Configure(). For sure, I want to do this without quitting the application :-) In fact, at a given time based on an internal event, I would like to stop the remoting functionality within my process. Many thanks,
1
20606
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but I don't see the error): "System.IO.IOException: Unable to read data from the transport connection:A blocking operation was interrupted by a call to WSACancelBlockingCall"
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.