| How to kill a singleton Part II (8 replies) |
| microsoft.public.dotnet.framework.remoting |
| Further to my mail last week I've been playing a bit more with Singletons and remoting and IIS. I still can't find a satisfactory way to remove a Singleton from service. I thought I had a neat way of getting rid of the Singleton: 1. The Singleton registers a sponsor (passing it a reference to the Singleton itself) 2. Every (period) the sponsor is called to renew the lease 3. The sponsor checks whe... |
|
| Unregistering client activation (4 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, Is there any way I can unregister a RemotingServices.RegisterActivatedClientType call? Tales Normando |
|
| Newbie: C# remoting hello world (5 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi group, I am a remoting newbie. What I would like to have and cannot find is a very simple, very basic "Hello World" type of sample/tutorial to demonstrate the basics of .NET remoting preferably using C#. Is there something like that out there? Thanks! Jan Roelof |
|
| Cross-process communication (4 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hi, We're working on a couple of EXEs (one of them built in .NET, the other one is unmanaged) and we need to enable cross process communication between them (same machine, and the .NET one starts and waits for the second one to do its work and exit before continuing, however, in the meantime, the .NET one enables user progress info and cancel support of the work that the unmanaged one is doing). T... |
|
| Hosting rremote object in IIS (5 replies) |
| microsoft.public.dotnet.framework.remoting |
| I just started playing with .NET remoting. I read the Microsoft Knowledge Base Article 312107 (HOW TO: Host a Remote Object in Microsoft Internet Information Services) and reproduced the steps as indicated. However, when I start the client I get the following error: Unhandled Exception: System.Runtime.Remoting.RemotingException: System.Runtime.Remoting.RemotingException: Requested Service not foun... |
|
| access to server object from the server (6 replies) |
| microsoft.public.dotnet.framework.remoting |
| hi everyone, i'd like to show my problem with a like example. my client gets a reference for example like this: RemotingConfiguration.Configure( xmlFile); server (IServer) RemotingHelper.GetObject(typeof(IServer)); i use a interface like this: public interface IServer { string ServerName { get; } } my class looks like this: public class Server : MarshalByRefObject, IServer { private string serverN... |
|
| Calling a .Remoting object from web service (4 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I am trying to call a .Net remote object from my web service. I am used to the following interface: RemotingConfiguration.Configure("web.config") I have put remoting configuration inside web.config file. When the web service is called and it calls the above mentioned method, it cannot get access to web.config file. How can I do this inside a web service cleanly? Thanks Pawan pawan@pinger.org |
|
| remote application doesn't work (2 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I?m trying to run a .Net server application from a client. Installing and running the application on the client machine it works just fine but running a shortcut from the client to a server, in which the application is installed on, generates an error: "Application has generated an exception that could not be handled..." If I run it like this from my computer(with a development enviroment) , a... |
|
| Shutdown of output stream in TcpClient? (2 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hello, I need to interop with a TCP socket based java program that is expecting the EndOfStream signal from my TcpClient (.NET client). I don't see any methods in the TcpClient to actually send the EndOfStream. Does anyone know how to do this? Getting the "input stream" from the TcpClient does not perform this either. Thanks |
|
| Restricting server access to a whitelist (10 replies) |
| microsoft.public.dotnet.framework.remoting |
| I would like to restrict the access (from the server side) of MyRemoteObject : MarshalByRef to a specific list of clients (i.e. a whitelist of machines). Does anyone know how to implement such security policy ? Thanks in advance, Joannes Vermorel |
|
| Error register sponsor for CAO (8 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi I have one singletion remoting Object called SingleAObject from which I get other Client activeted Object CAO Object. I am using Factory Pattern Client activated Object. I would like to register sponsor for CAO Object. But I get error when I use following code: "Error: Because of sercurity restrictions, the type System.Remoting.ObjRef cannot be accessed." ISingleAObject is interface pointing to... |
|
| ANN: first release of NGrid (open source grid computing) (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| First release of NGrid (called "NGrid.Mock v0.0") Please have a look the project page: http://ngrid.sourceforge.net/ Summary: NGrid is a C# open source (LGPL) transparent grid programming model. NGrid abstracts the burden of the grid into a multithread programming model. NGrid is designed to carry computationally intensive tasks over multiple machines. The project has just started. Any feed back w... |
|
| Help! Config files (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I have a business objects dll (VB.Net Project) on my server containing multiple classes. I want to share these to multiple clients using remoting. I have created a config file to "advertise each of the classes as below: App.Config ?xml version "1.0" encoding "utf 8" ? configuration system.runtime.remoting application name "Server" service wellknown mode "Singleton" type "elantis BUS.BusCategory, e... |
|
| Remoting performance (5 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I have a windows service hosting my remote object. This is object of my scheduler class and it creates threads for the tasks to perform. When I was profiling the performance I have noticed that the most of the time the process was spending was the TcpChannel.Listen (and Socket.Accept in it) 45%. Is something wrong? I know that the service must listen for incoming requests but isn't the time to... |
|
| custom channel gets internal error on Frame 1.1 (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I implemented a bi directional socket channel, it works great on Frame 1.0. I recompiled all the assambies with VS .net 2003 and run on Frame 1.1, client got internal error when it subscribes event from server like this: ((IRemoteObject)ro).ReplicaCreatedByServer new EventHandler(handler); The following are the exception of client: sck://server:1002 is not available: System.Runtime.Remoting.Remoti... |
|
| Webservice vs. Remoting ! (8 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hello everybody, I want to ask what is the best way to tansfer DataSets (or any object ) in a local network ? Webservice or remoting ? Or any thing else ? thanks in advance |
|
| Any way for serialize private fields via XmlSerializer? (5 replies) |
| microsoft.public.dotnet.framework.remoting |
| All: I know that the XmlSerializer will not, by default, serialize private fields in a class. Is there an attribute that can be applied to private fields that allows the XmlSerializer to serialize these fields? I could make these fields public, but I really don't want to break the class's encapsulation just to allow serialization. Any suggestions? Perhaps something in WSE 2.0 might help here. Than... |
|
| NTP Sync Doesn't Work with WinXP Pro (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| I'm trying to get a basic NTP Time Sync program working (http://www.codeproject.com/csharp/ntpclient.asp?df 100&forumid 2012&exp 0&select 644865). I downloaded the source code and recompiled in .NET 2003 and it runs fine on my Win2k box but I'm getting a socket exception 10054 "An existing connection was forcibly closed by the remote host" when I run it on my WinXP Pro laptop. The interesting thin... |
|
| Activator.GetObject and Remoting.Proxies.ProxyAttribute (2 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I have found a way (in Don Box's book) to Intercept all calls to method of a class using Proxies.ProxyAttribute, actually class which derives from this one. But on my current project we are using interfaces (and Activator.GetObject ) instead of class implantation to distribute dependant classes over different servers, is there a way to make similar attribute to intercept all calls to an interf... |
|
| Bug ? RealProxy - Delegate - Async - Message.InternalGetArgs ? (3 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| Hi , Is this a bug ? If not , can any one tell me how to resolve it please ? namespace Test { using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Messaging; using R System.Runtime.Remoting; class MyMbr : MarshalByRefObject { public void Handler(object sender,EventArgs args) { Console.WriteLine("sender:" sender); } } class MyProxy : R.Proxies.RealProxy { MyMbr server new MyMb... |
|
| Problems with ISponsor, still getting "service unavailable errors" (6 replies) |
| microsoft.public.dotnet.framework.remoting |
| I have two .NET processes, RemotingHost and RemotingClient. RemotingHost exposes a server activated live forever object called RemoteClass which is derived from MarshalByRefObject. RemoteClass has one method, RemoteMethod, which takes a RemotedClassParameter object which is also derived from MarshalByRefObject. The method does the following 1) Registers a sponsor for the RemotedClassParameter para... |
|
| Preventing the interception of the ProxyAttribute (3 replies, VIP) |
| microsoft.public.dotnet.framework.remoting |
| I am currently having problems to implement the overriden method ProxyAttribute.CreateInstance. How can I instanciate directly an object decorated with a "ProxyAttribute" without having the "new" operator intercepted ? To clarify the question, please have a look at the following code: public class MyProxyAttribute : ProxyAttribute { public override MarshalByRefObject CreateInstance(Type type) { ob... |
|
| i'm hopeless! exception: underlying connection closed (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hello everyone, i can't understand why this doesn't work. I get the following exception, after in try to connect to the server. "The underlying connection was closed. The server executed a HTTP protocol violation." (I translated that from german so it could sound similar :) after that everything network depending takes a 10 second break before it goes. For example when i try to browse to an intern... |
|
| Remoting Type Class (4 replies) |
| microsoft.public.dotnet.framework.remoting |
| I have a method of a class that derives from ServicedComponent which takes a Type as a parameter. When I call the method I get the following error. "Insufficient state to deserialize the object. More information is needed." Can I remote the Type class? It is marked as serializable. Thanks. |
|
| Threads in AppDomain (4 replies) |
| microsoft.public.dotnet.framework.remoting |
| This issue is somewhat related to Remoting but I did not know where else to post. Question: Is there a way to ascertain the number of threads currently running in an AppDomain? The issue has to do with safely unloading an AppDomain where there is nothing going on inside of it without making all inbound call explictly register themselves with a central montioring authority. No matter what I do AppD... |
|