microsoft.public.dotnet.framework.remoting Archive - May 2002
Post a message to this list
Messages
Page: 12
Best way to host remotable objects (2 replies)
microsoft.public.dotnet.framework.remoting
I'm currently using IIS 5.x to host my remotable objects. Is it worth building an W2K service to act as the host? Would there be much of a performance difference? Kyle!
Cross Context call within Same AppDomain (2 replies)
microsoft.public.dotnet.framework.remoting
Hi Ingo and others, I have read a few books talk about method calls across AppDomain which go through message sink, channel sinks and Channel. But i find very littl info about calls made across Context WITHIN SAME AppDomain. Obviously, Cross Context call within the same AppDomain will not use Http/Tcp channel, so what will it use? Will it simply pass the IMessage object to the other context? Does ...
Intercepting calls *within* one object (3 replies)
microsoft.public.dotnet.framework.remoting
Hello, while it is simple to intercept calls *between* objects using ContextBoundObject and custom attributes (and less easy but still possible using a custom proxy), I failed to find a way to enforce interception within one object. Example: [SomeAttribute /*inherits from ContextAttribute*/] class Test: ContextBoundObject { public void test1(Test t) { t.test2() } public void test2() { test1(); } }...
web.config for remting (2 replies)
microsoft.public.dotnet.framework.remoting
There is an example of web.config file for Remoting Example from MSDN Web.config configuration system.runtime.remoting application service wellknown mode "SingleCall" objectUri "SAService.rem" type "ServiceClass, ServiceClass"/ /service channels channel ref "http"/ /channels /application /system.runtime.remoting /configuration Is there any way to specify in it some custom key like "ConnectionStrin...
Dynamic Publication Lifetime/Singleton issues (4 replies)
microsoft.public.dotnet.framework.remoting
Hi all, Still working through our projects remoring problems, here's our current problem. We're using dynamic publication of objects on our server because we need to be able to specify information in the constructor and pass references to other existing object instances. The problem we've solved are: trouble with events (solved using Mike Woodring's Shim approach) and Interface casting (solved usi...
Remoting a bitmap image (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I am trying to pass to a remoting client a bitmap image that is on a server that has remoting objects. This bitmap image will be used on the client every time it uses a specified object. Now, this image has to be loaded by any number of clients. I tried loading the image into a bitmap object in the server object, and then access this image on the client by returning the proxy object of the ima...
Dyamic remoting configuration and Appdomain unloading (6 replies)
microsoft.public.dotnet.framework.remoting
I want to be able to reset the remoting environment when i dedect changes have been made to a remoting configuration file, i have tried to do this by creating an appdomain within which i configure remoting.I also have a filesystem watcher object watching the remoting configuration file for changes, if a change occours the appdomain will be unloaded and recreated to configure the remoting environme...
Starting a remote object server (5 replies)
microsoft.public.dotnet.framework.remoting
How would you go about starting a remote object server in a "production" environment? Would you use a Windows service? Can the system.runtime.remoting contain multiple application name "whatever" nodes? I've assumed that this doesn't work since RemotingConfiguration.ApplicationName is a property that takes one value. If the above mentioned remote object server wants to host multiple applications, ...
static initialization behavior when remoting (7 replies)
microsoft.public.dotnet.framework.remoting
it seems that all static data initializations on server seems to be replicated on client side even if they are done in a different project than the remote object project. is this a correct behaviour or a bug? in BusinessRules project : public class StaticObject { public static readonly StaticObject Instance new StaticObject(); private StaticObject() {} public Method1() {}; } in BusinessFacade proj...
getting the size of allocated memory via Marshal.SizeOf (6 replies)
microsoft.public.dotnet.framework.remoting
If I use System.Runtime.InteropServices.Marshal.SizeOf(object) , It should be the size of an unmanaged object. So far I couldn't find a method to get the memory size allocated by a managed class instance. Is there a way to do this ? for my application , I just want to keep track of memory to monitor performance issues. other than that there is no real need. But I guess, this is important. Otherwis...
Serializing (4 replies)
microsoft.public.dotnet.framework.remoting
Hello all, I've created a C# WinForms app that instantiates a "Client Class", defined locally and marked as Serializable . This Client Class uses Remoting Client Activation to instantiate and execute methods on a Remoted Object. The code on the Client Class is simple, it only has a method that executes the RegistedActivationClientType() and instantiates the Remoted Object, storing it in a module l...
How can I access a remoted object from the host? (2 replies)
microsoft.public.dotnet.framework.remoting
I have some host code that creates a channel for clients to access an object through remoting. Is there a way, from the host, that I can access the remoted object? The code I have is similar to that shown below: Dim chan As System.Runtime.Remoting.Channels.Tcp.TcpChannel New System.Runtime.Remoting.Channels.Tcp.TcpChannel(8085) System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(chan)...
State (2 replies)
microsoft.public.dotnet.framework.remoting
I'm fairly new to remoting . I did the standard 'simple hello' remoting sample. I need help on how to accomplish this: I need to maintain state on remote objects so SingleCall is discarded (I assume). Now, my remote object is not 'read only' meaning each client will change data (properties). What options I have (if any)?. Thanks
.Net Remoting, Web Services, or COM+ (10 replies)
microsoft.public.dotnet.framework.remoting
Over the past several years I have learned that if I want to build a scalable application using Microsoft technologies, I should follow the Windows DNA guidelines. With the release of .Net, I am hearing in one ear to forget everything that I learned and now it is all centering around Web Services. However, some say COM isn't dead and there are still reasons why you would want to use COM services u...
IIS Server with delegate client calls (5 replies)
microsoft.public.dotnet.framework.remoting
Hello All, I want to setup a server under IIS and call it with delegates in my client. I've been reading from Advanced .NET Remoting and can't seem to come up with the correct combination to communicate. Mainly I want to pass datasets to the server so it can log the info. My server looks like Class Status { public void UpdateMachine(DataSet DS) { // Log it } } What would my best choice: metadata? ...
Local only RPC does not exist in .NET? (4 replies)
microsoft.public.dotnet.framework.remoting
I'm novice on .NET remoting, and sorry if this question is so clear to everyone. I'm looking for the local machine only RPC. I looked for several web sites and list archives, and that believed me that there's no such things; I have to use remoting with TcpChannel if I would like to go with built in capability. I also found NamedPipe implementation of channel, but allow me to confirm; Are there no ...
Client Proxy Still Alive After Disconnecting...can't connect to another URL (2 replies)
microsoft.public.dotnet.framework.remoting
My client uses RegisterWellKnownClientType. I connect to a server at one url, then I disconnect my client and try to reconnect to another url. Unfortunately, I get reconnected to the same old client. The only way I can connect to another url is to shutdown the application. It seems the Proxy is still alive and retains the old information. Is there anyway to UnRegisterWellKnownClientType or kill th...
PerfMon counters and Single Call SAO's hosted in a .NET Windows Service (4 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have a Windows Service (C#) that registers a TcpChannel and WellKnownServiceType in it's override to ServiceBase.OnStart(). This service is distributed throughout an application server farm and is subject to very high user workloads. I am trying to accumulate some statistics that I might use to better evaluate how well these things scale or when they begin to suffer performance degradation d...
remoting and soap, questions about a sample program (2 replies)
microsoft.public.dotnet.framework.remoting
Topic ID: 643061 Topic Title: SOAP in the Microsoft .NET Framework and Visual Studio.NET URL: ms help://MS.VSCC/MS.MSDNQTR.2002APR.1033/dndotnet/html/hawksoap.htm Browser: Microsoft Internet Explorer 4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) Regarding the article: SOAP in the Microsoft .NET Framework and Visual Studio.NET I am a bit confused. In the example, of "managed code ev...
Binaryformatter dsn't work. SOAP ok? (4 replies)
microsoft.public.dotnet.framework.remoting
Hi! I've got some problem w/ remoting. When I use soapformatter, everything is ok. When I try binaryformatter, exception occurs: "The object with ID 10 was referenced in a fixup but has not been registered." This happens, when I try to throw back this from the server: TimeStampedValue[][] res Gate.Get( params ); public struct Value { [FieldOffset(0)] public bool Bool; [FieldOffset(0)] public sbyte...
Creating an HttpChannel violates PermissionSet "Everything"? (2 replies)
microsoft.public.dotnet.framework.remoting
I'm trying to launch an app whose assemblies reside on a web server and am having issues with the security policy. The application is launched using a href "foo.exe" When I set the security policy to "FullTrust" everything works fine, however, when I set the policy to "Everything" I get a security exception when I make the call: IChannel channel new HttpChannel(9002); Is this correct? Shouldn't I ...
Pros/Cons using DataSet's with Remoting (9 replies)
microsoft.public.dotnet.framework.remoting
Hello, I have a rather simple question: What are the advantages of using a DataSet with Remoting ? I think it is possible to pass simple objects or even arrays from tier to tier with Remoting, as long as the used classes are marked [Serializable]. So why should I use a DataSet when I can have simpler Objects/Arrays ? With a DataSet I have to handle DataTables, DataRows, etc. With an "ordinary" Arr...
A CAO instance question (2 replies)
microsoft.public.dotnet.framework.remoting
Is it possible to get the same instance from a CAO romoted object(I know this is how a SAO singleton works)? Most of the time I would like a new instance but once in a while I was hoping I could get a specific instance. Anyone know if this is possible?
Making form visible (2 replies)
microsoft.public.dotnet.framework.remoting
clients have 2 forms (main and message main creates an instance of message(invisible to start) and remotes cX object) order: server registers remote object s client 1 (main form) registers a remote object c1 registers for the "MessageReceived" event of c1 Client 2 registers remote object c2 registers for the "MessageReceived" event of c2 client 1 registers with server through s (gets client 2's ip...
What (functionally) is the difference here (2 replies)
microsoft.public.dotnet.framework.remoting
does it make any difference in my client code to use one or the other of theses calls # 1. ChannelServices.RegisterChannel(New TcpChannel()) RemotingConfiguration.RegisterWellKnownClientType(GetType(MyService), "tcp://MyServer:8082/MyServiceApplication/MyUri") #2 HelloServer obj (HelloServer)Activator.GetObject(typeof(HelloServer), "MyUri"); or is #2 the C# way of saying #1 I've never seen the fir...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification