| Question about UrlAttribute ... (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi: I am trying to implement an example from Prof. C# (Chapter 23, p.992): object[] attrs {new UrlAttribute("tcp://localhost:8086/Hi")}; ObjectHandle handle Activator.CreateInstance("RemoteHello", "Wrox.ProfessionalCSharp.Hello", attrs); if (handle null) { Console.WriteLine("could not locate server"); return; } Hello obj (Hello)handle.Unwrap(); ............... For some reason, the line ObjectHandl... |
|
| how to do object pooling (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hello All, I want to have have a remotable server, but I do not want to do new on a component every time a client comes. rather than that, I want to have a pool of already instantiated components. The server should take an instance from the pool rather than create new objects upon request. This is similar to how session beans work in Ejb. How can this be done in Dot Net remoting. regards, Abhishek... |
|
| RemotingTimeout Exception (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| We met a problem about RomotingTimeout exception in the client side. This is because it takes too long for the server to execute the TPC H queries on 1G database and the client is timeout. Is there any way of setting the Timeout property in client side? Thanks, Min |
|
| error: Wellknown objects cannot marshal themselves in their constructor ..... (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| I have created an object that inherits ServicedComponent and am trying to remote it. First of all, I started by creating a class that inherited MarshalByRefObject and then I setup my configuration files as follows: Client: client url "http://localhost/wwwroot/RemotingService" wellknown type "RemotingSvr.clsRemote, RemotingSvr" url "http://localhost/wwwroot/RemotingService/clsRemote.rem" / /client ... |
|
| Client Activated objects (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi all Client Activate object work fine on LAN. But when you tried through internet, It create the instance of remote object, but if you tried to call any of it method or property it fails. It seems it is problem of IP address translation, Next time it is trying to use the internal IP address(192.168.0.000) to find the remote object. Did any body try it or get the same problem. Please suggest me a... |
|
| Connecting to an existing object using remoting (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| The question is: When I am using WellKnownObjectMode.Singleton, why is my constructor called more then once? I want to use the instance which already exists on the server. I have the follwing code created as a C# library dll. public class Hello : System.MarshalByRefObject { public Hello() { Console.WriteLine( "Constructor called" ); } ~Hello() { Console.WriteLine( "Destructor called" ); } public s... |
|
| How to get a Remote object instance for every client (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi guys I want my remote server to create a new Object instance (marshalled ByRef) for every different client that requests it. I found out that it is only possible to make the object create for every single call (SingleCall) or make one instance global for all clients (SingleTon), but not creating an instance (an keeping soo a client status) for every client referencing it. Any more elegant solut... |
|
| Get the singleton to pass data to the "server" (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I'm wondering if this is possible or not. I have a Windows Service which is hosting my singleton. When the client connects, it passes some data along that needs to wind up in a database. So the singleton gets the data and it can update to DB itself, but is it possible for this singleton to pass the data to the Windows Service which is hosting it instead, such that the service can maintain connecti... |
|
| System.Runtime.Remoting.Channels.Http doesn't exist on my system (4 replies) |
| microsoft.public.dotnet.framework.remoting |
| I am trying to explore .NET remoting and am having a problem. The Channels.Http or Channels.Tcp namespaces are required. However, I don't seem to have any namespaces beyond "Channels". When I installed, I elected to decline installing the Front Page extensions and IIS and the .NET setup informed me that I wouldn't be able to do some things... which I thought at the time only related to web targete... |
|
| Network identity of caller? (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I know that if you create a standard webservice under IIS, you can grab the IP address of the computer that made the request. Can you do the same thing under remoting? fluggo99 |
|
| Singleton question. (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I am exposing the class DMServer as a well known Singleton class in a service application. Then later I create an instance of that class elsewhere in the service code using new. Shouldn't I get the Singleton back from the call to new? If I change from new to Activator.GetObject, it gives me the singleton object. But GetObject requires me to hard code the URL for DMServer and I don't like that, I l... |
|
| type attribute and wellknown element in config file & some interesting facts & questions (long) (4 replies) |
| microsoft.public.dotnet.framework.remoting |
| I have been investigating the load balancing for remoting and came some across interesting things. Wanted to see if somebody has an explanation for them. This does not even conern the RealProxy implementation suggested in the MSDN aritcle by Jonthan Hawkins. HelloService.CHelloService object is exposed from HelloService.dll is hosted in HelloAssembly.exe. The server host listens for requests for t... |
|
| Can I stop a SOAP WebMethod from returning indented XML? (7 replies) |
| microsoft.public.dotnet.framework.remoting |
| Is it possible to stop the XMLSerializer writing 'pretty' XML using new lines and indenting nested elements. I am using a SOAP WebMethod (ASP.NET) like the following: [WebMethod] object Add(int x, int y) { return x y; } The results come back in the following format: ?xml version "1.0" encoding "utf 8"? soap:Envelope xmlns:soap "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi "http://www.w3.or... |
|
| problem accessing a singleton object from a library application...please help (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| I created a Library (EventPublisher) and a simple console app that activates the library as a singleton. I have another library (EventSubscriber) assembly that access the singleton object and that is used by a windows application. I also have a console app that access the singleton object the same way the EventSubscriber, same statements, same order of execution. When I work with the console clien... |
|
| Can someone help? Confused...maintaining connection over ASP.NET pages? (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| My boss proposed a question that I really can't answer with confidence. Maybe you can help me? He wants to know if you can maintain state in ASP.NET. Let me clarify a little more. We are developing a web app that uses a lot of database querying to the same database from page to page. He asked me if there was a way to have, rather than CONSTANTLY doing sqlConn new sqlConn on every page, to leave th... |
|
| How to define/control SOAPAction on a Remoring based Server (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I have built a simple service based on remoting. It works nice when accesed from a client that is based on remoting technology. Now, I'd like to call the service using an external client, running on Unix/embedded. My question is: How the SOAPAction is controlled using the Remoting technology ? Can I use the "config file" to specify it ? Thanks, Rosimildo. BTW: Here is the dump for the request:... |
|
| forwarding request.... (5 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi all, following problem: i created three apps. App CSFF should make a remoting request to CAPP and CAPP should forward that to another GMOD App. But: When i try to do this, i throws an exception "channel already registered".... And here is how i do it (not the comments on where the exception occurs!) (BUT WHY is that?) CSFF (the client) there is one method in that: RequestPECollection { IGBSInfo... |
|
| ISponsor, ILease, and LifetimeServices (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I have a server that acquires a reference to a remote client through an interface method. The server implements the ISponsor interface and registers itself with the remote client object as follows: public void RegisterClient object(CSomeClient client) { object obj client.GetLifetimeService(); ILease lease obj as ILease; if (obj ! null) { ISponsor sponsor this as ISponsor; lease.Register(sponsor); ... |
|
| Single call remoting - web client, connection closed error (4 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I am new to .NET remoting and am trying to create the RemotingHello to work with binary channel instead oof soap So I have a server, service whose config file looks like ?xml version "1.0" encoding "utf 8" ? configuration system.runtime.remoting application service wellknown mode "SingleCall" type "Greeting.GreetingService, Greeting" objectUri "Greeting.rem" / /service channels channel ref "ht... |
|
| two way communication using remoting (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| I'm trying to write a system where true two way communication is needed over remoting channels. The essence of the system is this: On either side of a particular channel are Agents that inherit from MarshalByRefObject. Agents send each other Messages (classes that are marked with the [Serializable] tag). To send a Message, Agent A is basically putting a Message in Agent B's queue. Each Agent has a... |
|
| CAO and IIS (2 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi All, This is a newbie question. How do you create a CAO? If I create a server service and host it in IIS on a remote machine is it a CAO? What is the "mode" for a CAO? What does the config file on the remote server list the mode as SingleCall? And, how do I get my web client to call a CAO on a remote server? TIA |
|
| Hosting in IIS(long one) (3 replies) |
| microsoft.public.dotnet.framework.remoting |
| hello, having all kinds of trouble trying to use the IIS as a host to my CAO's. not sure what i'm doing wrong. i've been using the example "Remoting Objects" in Technologies\basic as my primary example. its not working but IIS log files are showing or not showing depending on the scenario a POST call. Also, curious about IIS mappinga to which directory. i've test the scenario's to follow with the ... |
|
| Marshalling of arrays of struct (UDT) (6 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I have an ActiveX Exe server created with VB6. It has a collection of some hundred class objects. A client should be able to get the values of those objects. Walking through the collection of a remote process takes too much time. So I created a function the returns an array of structs (user defined types). This works very fast with a VB6 client. When I try to create a client in VB.net or C# an... |
|
| UNregister a WellKnownClientType? (5 replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi! I use RemotingConfiguration.RegisterWellKnownClientType(...) to access an object (singleton mode) on a remote AppDomain for a single call. Then I want to to UNregister this type again and use it as a standard local type. How can I do this? Using RemoteService.Disconnect(...) does not seam to work. Thanks. Chris |
|