473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Terminating a .net remoting instance

After executing RemotingConfiguration.Configure( myConfigFile ) the http
channel is now in use. To terminate this instance I have to shut down the
application, which then frees up the resources taken up by whatever the
configuration file indicated. I'd like to be able to add and remove
instances as I please. For instance, in a gui. Say I've added a remoting
object. Now I want to terminate that remoting object. I want to be able to
right click on it, select terminate, and have it free up that http channel,
etc. How do I terminate that remoting instance?
--

- Matt Kosorok
Nov 16 '05 #1
1 1635
It sounds like what you want to do is register and unregister remote objects
on the fly. If that's the case, they way you would do that is using
RemotingServices.Marshal() (to make an object available for remoting) and
RemotingServices.Disconnect() (to disconnect a remoted object). If you go
with this, be sure to remove any <wellknown> tags from your config file
first since this type of declarative syntax will not allow you to disconnect
the object when it's no longer needed/wanted.

If you need additional information, feel free to post in the
microsoft.public.dotnet.remoting newsgroup since it's dedicated to
remoting-related issues.

Ken
"Matt Kosorok" <Ma*********@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
After executing RemotingConfiguration.Configure( myConfigFile ) the http
channel is now in use. To terminate this instance I have to shut down the
application, which then frees up the resources taken up by whatever the
configuration file indicated. I'd like to be able to add and remove
instances as I please. For instance, in a gui. Say I've added a remoting
object. Now I want to terminate that remoting object. I want to be able to right click on it, select terminate, and have it free up that http channel, etc. How do I terminate that remoting instance?
--

- Matt Kosorok

Nov 16 '05 #2

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

Similar topics

3
by: Jerry | last post by:
If a Windows User decides to kill a process or a separate Windows app calls Process.Kill(), is there any way that the process being killed can see what's going on before it dies? I have a Windows...
4
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give...
23
by: Adam Clauss | last post by:
I have a C# Windows Service running as the NetworkService account because it needs to access a network share. As part of the service's initialization, I want the service to terminate, if an...
5
by: LGHummel | last post by:
I'm trying to host a remoting app in IIS and am getting the following error: Failed to execute the request because the ASP.NET process identity does not have read permissions to the global...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
5
by: mitch | last post by:
Hello, Basically, I want my application to run only one instance at a time and pass command line arguments to a running instance. I have all of this working, I used the IPC Remoting channel and...
5
by: Nick | last post by:
Hi there, Can anyone tell me what RTD is? And can it be used for simple interprocess communication? I am just interested in sending strings to a previous instance. I am currently using .NET...
6
by: Palvinder Singh | last post by:
Hello google group peeps, I am new to remoting, but have a grasp of it. I am trying to create a server/client application, which will be deployed over an intranet. I have upwards of five...
4
by: Rich | last post by:
Can anyone suggest a good (current) tutorial on how to do basic remoting with C# (2005 express edition)?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.