microsoft.public.dotnet.framework.remoting Archive - October 2001
Post a message to this list
Messages
Page: 123
And once again WebServices (5 replies)
microsoft.public.dotnet.framework.remoting
Hi folks Once again I need your smart brian to get the confusion in my head cleaned up.... If I call a webservice then the following happens (correct me please if I am not correct): ASP.NET page gets compiled to IL IL gets just in time compiled Object gets created Method invoked Now my question is: 1) The Webservice object, does it gets created for every request or is it shared (So if I am writtin...
remote object video window not destroyed..??? (2 replies, VIP)
microsoft.public.dotnet.framework.remoting
I have written a class ( that incidentally uses COM interop with DirectShow ) that contains a method to render a media file by means of constructing a filter graph. Once the graph has finished/been stopped, the video renderer window inexplicably remains, although the video stream is stopped. The class instance is only destroyed on shutting down the object server. This problem is only evident when ...
Serious money making opportunity for you! (4 replies)
microsoft.public.dotnet.framework.remoting
Hi, im glad you read this because you've stumbled upon one of those opportunities that doesnt come around too often, especially with such a high quality product (the best internet browsing security available) This is ground breaking technology at prelaunch level make HEAPS of serious cash, dont miss out on this opportunity to get in at the ground level, you know that is where the cash is with this...
Where does the Thread.CurrentPrincipal.Identity disappear to? (2 replies)
microsoft.public.dotnet.framework.remoting
I have been playing around with the Thread.CurrentPrincipal to test out role base security, and it all seems to be running fine...until I start adding remoting into the equation. The problem I have come across is that the Thread.CurrentPrincipal.Identity gets replaced by an empty GenericIdentity as soon as I create an instance of my remote object. I have tried setting the AppDomain.CurrentDomain.S...
Calling back into the Client. (Remoting events) (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have been working with the RemotingEvents .NET sample which allows you to create two hosts, one triggering events in the other. I would like to create a remote host that triggers events back in the client that instantiated it rather than some other host. Is this possible and how is it done? Thanks, see ya. John
How to... implement a Delegate as an Event in VB.NET (for remoting)? (2 replies)
microsoft.public.dotnet.framework.remoting
Anyone know how to implement a delegate to be used as an event in VB.NET. I've found a few examples of how to do this in C#, but not in VB.
EZ: File.Copy("url", local-file)? (2 replies)
microsoft.public.dotnet.framework.remoting
I have files mounted on both Web Shared folders and on SharePoint Web Folders. I would like something that is the equivelent of System.IO.File.Copy() to be able to copy these files to the local drive. The problem is that File.Copy() only takes local files or maped directories (and not web shares, etc.) This should be an EZ problem, but I have not yet found it in Deja or in the .NET framework docs....
How to use dotNet remoting and COM+ role base security together. (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have a business tier object that runs on a delicated server, and allow clients to make method calls on it via remoting (TcpChannel). I would like to run the business tier object under COM , so I could use role based security and object pooling services. I currently are able to create a dotNet object that accepts method via remoting, and another dotNet object that runs under COM using role ba...
Remoting Events (3 replies)
microsoft.public.dotnet.framework.remoting
Hi there, I have tried everything I can think of, but still have no luck with remoting events. I am trying to write a simple chat program where the clients register an event with the host. I have multiple samples that are supposed to work, but only work on a clean install of WinXP. I have tried it on various computers running Win2K pro, Win2K Server and WinXP. All but the clean install fail with a...
WellKnownType & Client-Activated??? Confused me (Newbie)... (3 replies)
microsoft.public.dotnet.framework.remoting
Dear All, I am confused with the WellKnownType, Client Activated and actually i am also confused about the location of the real object, i mean the object in memory(client or server?). What's in my mind now is that. WellKnownType is like a service provided by server. Object created is resided in Server's memory. Client access the service (SingleCall or Singleton) by using the proxy. RemotingConfigu...
Dot net remoting with shared types assembly (3 replies, VIP)
microsoft.public.dotnet.framework.remoting
Hi, I have a written a RemotingObject, Client and server. I generated a types assembly of RemotingObject using SoapSuds types etc. I referenced this .dll in client project. In server i referenced the actual RemotingObject's assembly. Now everything works fine as long as they are private asseblies. I converted both the asseblies into a shared assemblies. Now i referenced them in client and server p...
RegisterActivatedClientType (2 replies)
microsoft.public.dotnet.framework.remoting
One doubt: why RemotingConfiguration.RegisterActivatedClientType(...) doesn't throw an exception when I try to register a type not derived by MarshalByRefObject? I can't find a good reason to justify that. Is there a reason to register a Marshal by value type for a client activated object? Thank you Marco
WebResponseStream (stream too short!) terminates early. (2 replies)
microsoft.public.dotnet.framework.remoting
Regardless of buffer size, this piece of code is always getting about 1/5 of the actual file. The URL is for a Excel binary: http://server/file.xls: The WebResponse.ContentLength; does show the right number of bytes 80K, but this writes only 16KB, regardless of block size. (I watched it, and it only goes through the loop four times, So I know the problem is in the read). (I have tried things like ...
Remoting Lifetime and ClientSponsor (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, Did anyone ever used the Clientsponsor LeaseServices to control the lifetime of marshalled objects? If I register a ClientSponsor on a Lease of a remote object, the server never asks it to renew the connection, and the remote object just times out... Can someone give me a hint, of does anyone know where to find example code? Thanx, Peter Vermeesch
OneWayAttribute() (2 replies)
microsoft.public.dotnet.framework.remoting
Anyone successfully use [OneWayAttribute()] in CLR remoting server? It's suppose to provide fire and forget mechanism but my server's method is still blocking. Please help. Thanks. Kenny
TcpClient hangs on HTTP GET? (5 replies)
microsoft.public.dotnet.framework.remoting
The code below hangs inside the DataAvailable wait loop. Any ideas why? using System; using System.Net.Sockets; using System.Text; using System.Threading; class Test { public static void Main(string[] Args) { Console.WriteLine(HttpGet("www.microsoft.com", 80, "/")); } public static String HttpGet(String host, int port, String page) { Console.WriteLine("REQUEST"); TcpClient client new TcpClient(hos...
InvalidCastException bug - Microsoft, please help (2 replies, VIP)
microsoft.public.dotnet.framework.remoting
Hi, There is a strange InvalidCastException thrown when I'm calling remote method. Stack trace shows that exception is thrown in my class, but when I'm trying to debug that class debugger never stops in method (that means that method is not called, right?). All my attempts to change interface and implementation to get them work failed. Is there any way to find where the problem is? I can't debug m...
URI of the RemotingServices.Marshal method (3 replies, VIP)
microsoft.public.dotnet.framework.remoting
Hi, There is something I do not understand when marshalling an active object from the server application. First I create an instance of an object (which is an MBR object) Dim oObject as IMyObject new CMyMBRObject() When I use the function: oObjRef RemotingServices.Marshal(oObject , "MyObject.soap", GetType(IMyObject)) I expect the URI of the remote object to be 'MyObject.soap" but the result of De...
BinaryWriting to WebRequest hangs after 81920 bytes????? (2 replies)
microsoft.public.dotnet.framework.remoting
I am now finding that BinaryWrites stop after 81920 bytes. If it is a shorter file, it completes. The line that does the sink.Write() just hangs (in the debugger I wait forever for it to return). I am using IIS 5.0 on Win2K server. I have set the protection of the directory to Write (I have tested this by mapping a webfolder and dragging files into the folder). Any ideas? BTW: When I try a short f...
Registering remote namespace? (2 replies)
microsoft.public.dotnet.framework.remoting
Is there a way to register an entire namespace as remote? I'm using client activated objects and I have a namespace where I want all the classes remoted. Right now I'm explicitly registering each class. The code looks like this: TcpChannel channel new TcpChannel(1234); ChannelServices.RegisterChannel(channel); RemotingConfiguration.ApplicationName "A.B"; RemotingConfiguration.RegisterActivatedServ...
the role of Configuration file (4 replies)
microsoft.public.dotnet.framework.remoting
Hi All, I have never written any remoting app before, and am actually considering ideas for writing one. I have the impression that by only using the config file you can write a distributed app that can be deployed in a box or in a distributed environment. To do that I need to derived my service objects from MarshalByRefObject. What I am unclear of is, is it possible to not write any code to regis...
Catching an event from a server application in the client application (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I would like to create an server application. This application creates an object, and uses RemotingServices.marshal to share it over SOAP. This object has a function RaiseAnEvent, and an event OnEvent. In a client application I connect to that object of the server application. If the server calls the RaiseAnEvent function, which raises the OnEvent event of that function... is is possible to ca...
Problem: Excessive memory consumption when returning a very large DataSet from a remoted object (3 replies)
microsoft.public.dotnet.framework.remoting
I have run into a problem while using remoting to return very large DataSets (50,000 rows, ~ 27MB serialized). The DataSet is filled with no problems on the server. When the remoting sub system attempts to return the DataSet (SingleCall WKO method), I always get a sudden memory consumption spike (~300MB jumps to 700MB) and an OutOfMemoryException soon follows. I don't really understand the why the...
CAO question (3 replies)
microsoft.public.dotnet.framework.remoting
i'm not sure if this is possible or not, but this is what i'd like to do. i'd like to create two remote CAO objects on two different machines, and then allow them to operate on each other by passing one of them into the other. So, i'd have in my client: foo1 Activator.CreateInstance(...); foo2 Activator.CreateInstance(...); //created on another machine //at this point, i can (obviously successfull...
Client activated objects (5 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have followed the Professional C# examples on how to create a client activated object. Se attachment. Everything works fine when running this on the same machine. But when running the client from a different machine I get an error saying: No connection could be made because the target machine actively refused it. I have also tried using soapsuds to create a wrapper assembly (which worked fin...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com