microsoft.public.dotnet.framework.remoting Archive - August 2002
Post a message to this list
Messages
Page: 1234
URL Stream (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, Does anyone know how to read from a URL? Java had a URLStream Reader class. I dont find any equivalent in C#. Are there any classes in .NET framework which allows you to read URL streams. If not, is there any work around. Thanks, Kishore
Remoting, Events and delegates (2 replies)
microsoft.public.dotnet.framework.remoting
Hi I am having a hard time understanding the difference between remoting events and remoting events using delegates. For example, is there any difference between: (vb) Class1 Event SomeEvent(Sender as Object, e as EventArgs) Sub FireEvent Raiseevent SomeEvent(me, Nothing) End Sub End Class Class 2 Dim c as Class1 Sub New c new class1 addhandler c.SomeEvent, Addressof me.MyEventHandler End Sub Sub ...
Tcp Namespace problem (newbie) (4 replies)
microsoft.public.dotnet.framework.remoting
Hello, I'm trying to write a Win2k Service and access it through remoting with a TcpChannel but I can't find the System.Runtime.Remoting.Channels.Tcp namespace. I can go as far the the Channels namespace and then intellisense doesn't show anything after that. Also, I cannot find it in the object browser. Even the docs say that this namespace exists. What might I be doing wrong? Thanks for the help...
Remoting in a windowed application (3 replies)
microsoft.public.dotnet.framework.remoting
I have a remote object that I want to use for communication between applications. I have started with a simple object that raises an event once a second reporting the current time as a string parameter of the event. I have one method that will pause this "pulse" as a toggle (call the method once to pause, again to continue). I have a second event that is raised every time someone toggles the pause...
ASP and Remoting (2 replies)
microsoft.public.dotnet.framework.remoting
Hi NG, this is my problem: I want to connect to a Remote process from my "codebehind" file, but I get no response from the remote server. We've tried the same connection with a simple Winapplication, and we were able to connect. I cannot tell you the exactly Exception Message, because I use the german version, but I'll try to translate it: System.Net.Sockets.SocketException: the requested Servicep...
Winsocket in C# (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I've look around but nothing right now, I would like to know the way to access winsocket control in C#. Are there some net papers or ufficial documentation? Thanks, Enrico
EnterpriseServices with TcpChannel (4 replies)
microsoft.public.dotnet.framework.remoting
I want to use EnterpriseServices for my BusinessObjects, but I don't want to use Http as channels for the remote communication. Instead I would like to use TcpChannels. There is no problem to use HttpChannels and IIS as the host, but as I said that is not what I want. I would prefer to somehow skip the IIS entirely. Does anyone know how to do this? Do I have to write my own host application? /Klas...
Strange problem with events (2 replies)
microsoft.public.dotnet.framework.remoting
I need my server application to fire events and the clients to receive them. The problem is that when I try to add the event handler method in the client, I get a SerializableException: "Insufficient state to deserialize the object. More information is needed." This question was already asked here at least two times, but no definite answer was given (I checked at Google Groups). I included the rel...
Activator.CreateInstanceFrom Error (2 replies)
microsoft.public.dotnet.framework.remoting
I keep getting an error trying to use the Activator.CreateInstanceFrom function. Its a TargetInvocationException which I know means that there is a problem trying to create the target object, but I can't figure out why. The innerexception indicates a System.Security.SecurityException, but I don't know why that is either. The target object inherits from a baseclass that is marked as serializable an...
Ingo,do you have any ideas on this? (5 replies)
microsoft.public.dotnet.framework.remoting
I'm having pretty good success with remoting now. I have that callback "shim" class working great for callbacks from the server to the client. But I have a show stopper problem that I can't resolve. Here's the situation: I have a Windows Service that will act as the remoting server. The service creates a singleton on startup and publishes that instance. Clients get a reference to the singleton and...
Exception when remoting to a particular IIS web server (5 replies)
microsoft.public.dotnet.framework.remoting
I am getting the following exception when using remoting to connect to objects hosted on a particular IIS web server: An unhandled exception of type 'System.Net.WebException' occurred in mscorlib.dll Additional information: The underlying connection was closed: An unexpected error occurred on a receive. Has anyone seen this before? Things work fine against other web servers and I can't see any dif...
Constructor is not called when deserializing (2 replies)
microsoft.public.dotnet.framework.remoting
I have a serializable object that's being returned by a server activated object. My objects constructor isn't being called when the object is returned. Is that expected? How should I initialize fields that are marked with [NonSerialized] ?
Passing Objects From a remote object to a Client (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I am have problems with the following, i have a remote object that copies a file from a folder to another folder and this works. Following me so far? Once I change the peermissions on the first folder and change the permissions on the remote object (to allow it to access the first folder) the application falls with the following error An unhandled exception of type 'System.TypeLoadException' o...
Shared Interfaces question. (pg. 78 Rammer's book) (2 replies)
microsoft.public.dotnet.framework.remoting
Rammer's book on remoting has me asking a question: Can I pass DataSets around by using shared interfaces in my shared assembly? Before I get into writing code to figure this out, I thought I might ask first. I DO NOT want ANY implementation code on the client, but I do want to be able to pass a DataSet back to the server. (I want to use DataBiding in the UI). I have seen, and read, some examples ...
WindowsPrincipal passed with CallContext doesn't pass the Name property (2 replies)
microsoft.public.dotnet.framework.remoting
I'm trying to send to a SAO a WindowsPrincipal from my client application. [Serializable] public class ContextCookie : ILogicalThreadAffinative { WindowsPrincipal principal; public WindowsPrincipal Principal { get { return principal;} } public ContextCookie(WindowsPrincipal principal) { principal principal; } } and then used CallContext to send it before calling my remote method: WindowsIdentity i...
Back to CallContext (2 replies)
microsoft.public.dotnet.framework.remoting
Hi! I'm completely misguided by class name, it seems. I thought that CallContext collection is initialized every time the call enters AppDomain and it's contents is dropped after call returns from AppDomain. As I found in my application contetns of CallContext are preserved between calls. So here is the question: what the real difference between CallContext and ThreadLocalSlot other then marshalin...
Late Binding and events (8 replies)
microsoft.public.dotnet.framework.remoting
I wants to load and instantiate instances of objects from DLL (Written in ..NET). I only know the name of DLL,s. All the DLL's will be implementing a defined interface and the main application knows about it. Also I need to listen to events from those DLL's. Can I do all using Assembly.Load, CreateInstance etc. Please Help. Thanks Anil Gupta
Remoting Security (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I am just starting to experiment with remoting. I have a DLL with a class that inherits from MarshalByRefObject in the bin directory of a virtual directory. I then try to create an instance the following way: dim attributes(0) as Object attributes(0) new urlattribute("http://ComputerName:80/RemotingTest") dim s Activator.createinstance("ClassLibrary6","ClassLibrary6.ServiceClass",attrib utes) ...
tcpChannel via port 80 (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, Firewall / network admin question. Assuming a my server isn't running IIS or anything else on port 80 except for this: tcpChannel new TcpServerChannel(80); ChannelServices.RegisterChannel(tcpChannel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(Hello), "Hi", WellKnownObjectMode.SingleCall); Will a client be able to connect through a firewall? I know port 80 is allowed for HTTP pr...
Remoting proxy error (3 replies)
microsoft.public.dotnet.framework.remoting
I've a TcpServerChannel Registered. And RegisterWellKnownServiceType(...) I've a TcpClientChannel Registered and get the object reference through Activator.GetObject(...) All my functions which do not use XML serializer work fine. But than fns that use xmlSerializer.Deserialize(Stream xmlDoc)give the error message "This remoting proxy has no channel sink which means either the server has no regist...
tcp://localhost:8080/SvcName: do I need the port-number 8080 ? (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, we have a .NET Server which uses a TcpServerChannel that is initialized with port 0: this means it should find and use the next free port available. This works fine. But: how do the Clients connect to this Server? All examples I have found uses a string like "tcp://localhost:8080/SvcName" where the port on which the Server listens is used. In my situation the port of the Server is unknown, bec...
Remoting-Server as NT-Service (7 replies)
microsoft.public.dotnet.framework.remoting
hello ng, i have the following problem: i want to implement a remote server as a nt service. the class, provided by the server are in a class library and implements the IAVAImport interface, which is also linked in the client. as a simple exe the server works fine, the call of methods by the client is successful. however, the same code as nt service supplies a 'System.Reflection.TargetInvocationEx...
Invoke remote method with reflection (2 replies)
microsoft.public.dotnet.framework.remoting
Is it possible to reflect the type of a remote object and invoke a method on the remote object like I can do with normal reflection with local .NET objects? like: remType remobject.GetType(); MethodInfo[] methods remType.GetMethods(); remType.InvokeMember("Method1", ....)
problems with remoting and objectvariable (3 replies)
microsoft.public.dotnet.framework.remoting
hi newsgroup, i try to invoke this very simple test class: public class test: MarshalByRefObject, ITest { private string mName; public void SetName(string Name) { mName Name; } public string GetName() { return "Name: " mName; } } if i invoke this from a program on my computer, it works perfectly. then i try to invoke this remote with this client: public Client() { TCPChannel chan new TcpChannel();...
CallContext's Headers and Data (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, what are the differences between the CallContext's Headers and Data? Let's say I want to store user's information such as username in CallContext, should I use SetHeader or SetData? What are the real difference? Besides, what is the meaning of the "MustUnderstand" property in a Header object? Thanks a lot Tony
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