microsoft.public.dotnet.framework.remoting Archive - April 2002
Post a message to this list
Messages
Page: 123
Exception Serialization Error (2 replies)
microsoft.public.dotnet.framework.remoting
I'm throwing a custom exception from a dll called by a remote object and keep getting an error. Here's the exception class declaration: [Serializable] public class LogHandlerException : ApplicationException, ISerializable { .... } Here's the error I'm getting: The type Nsa.Lib.Log.LogHandlerException in Assembly LogHandler, Version 1.0.810.25200, Culture neutral, PublicKeyToken null is not marked ...
Remoting problem using a ContextBoundObject using SingleCall mode (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I'm trying to access a class derived from ContextBoundObject via remoting. Everything works fine if I use the Singleton mode; however if I use SingleCall instead, a StackOverflowException is thrown in the server when I add a ContextAttribute to my remote class. Any Ideas?? Regards, Ramiro Calderon rcrdev@hotmail.com
serilaizing objects and streaming though a socket (2 replies)
microsoft.public.dotnet.framework.remoting
I am trying to send objects back and forth between client and server (messages). I want to serialize them using the BinaryFormatter. For some reason it doesn't work: chatClient is TcpClient ProtocolV1.LoginRequest login new ProtocolV1.LoginRequest(); login.username "emad"; login.password "1234"; BinaryFormatter bf new BinaryFormatter() ; bf.Serialize(chatClient.GetStream(),login); chatClient.GetSt...
Remoting Authentication Channel Sink (3 replies)
microsoft.public.dotnet.framework.remoting
I am in the process of experimenting with remoting with config files. I have successfully implemented a proxied object but I am having a problem with its WindowsIndentity. I need the Server Object to run as the same principal as the client creating it. The problem is that it runs in the same principal as the host console application / NT service (I have tried both hosting methods). I read http://d...
my remoting won't remote?!? (2 replies)
microsoft.public.dotnet.framework.remoting
I've got a remoting server and remoting client who are supposed to talk over http channel. But they don't. I set a reference to the remotingserver.dll and a "using remotingserver" statement in my remotingclient project. When I compile the code, it pulls a copy of the remotingserver.dll into the local remotingclient\bin\debug directory. Then, when I run the client it loads this version of the dll i...
Using binary formatter over HttpChannel - return argument has invalid type? (6 replies)
microsoft.public.dotnet.framework.remoting
I've got a couple questions regarding using the BinaryClientFormatterSinkProvider. I'm getting an error: at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType) Return argument has an invalid type., System.InvalidCastException... On the server side I'm doing the following: ********************************************************* ******** server programmatic remo...
remoting and XmlElement (2 replies)
microsoft.public.dotnet.framework.remoting
! StartFragment hi all, When I try to call a remoted object from my webservice class, I get the following Error: System.Runtime.Serialization.SerializationException: The type System.Xml.XmlElement in Assembly System.Xml, Version 1.0.3300.0, Culture neutral, PublicKeyToken b77a5c561934e089 is not marked as serializable. The method returns an XmlElement as you can see. Can't the Binaryformatter seri...
.NET client using COM+ Proxy created using .NET (2 replies)
microsoft.public.dotnet.framework.remoting
Hi I have a assembly, packaged as a dll, named Library.dll, written in C# containing 1 class; AClass, that derives from ServicedComponent. AClass has one instance method; string GetServerName(), that returns a string containing the name of the server. The assembly has a strong name and is configured as a Server Application and is installed in the GAC. The class has attributes; Guid and ClassInterf...
Namespace config for IIS hosted server component (2 replies)
microsoft.public.dotnet.framework.remoting
I have a minimal helloworld type server component that works fine unless I add a namespace to the source. The server code looks something like public interface IServerLib { string HelloWorld(); } public class ServerLib : MarshalByRefObject, IServerLib { public ServerLib() { } public string HelloWorld() { return "Hello from ServerLib"; } } If I put a "namespace MyServerLib {" and "}" around the who...
Security Exception with RemoteIIS example (2 replies)
microsoft.public.dotnet.framework.remoting
I'm trying the "Hosting in IIS" example from the Remoting section of the ..NET Framework documentation. I set everything up and ran the client from the same machine that IIS is running the server class "ServiceClass". That worked fine. When I run the client from another machine (2 machines on a home network in a workgroup) I get the following SecurityException: Unhandled Exception: System.Security...
Security Exception for a remote client IE control (2 replies)
microsoft.public.dotnet.framework.remoting
Hi all, I have posted the question before, some good friends here give me some hints to solve the problem. The problem i have before is the remoting client (it inherits window form controls) which is embedding in IE failed to load up. The friend here suspect it is a security problem, so i followed this way to try to fix the bug. After giving "full trust" to the remoting client control, i still fai...
HELP! Can't Disconnect/Reconnect Client With Events (2 replies)
microsoft.public.dotnet.framework.remoting
How do you disconnect a client which uses events????? I call ChannelServices.UnregisterChannel(channel) when disconnecting my client. This doesn't work. What am I doing wrong? MORE..... I am having 2 problems which I cannot resolve with regard to disconnecting/reconnecting my client application. 1. I cannot reconnect my client If I stop my application and start it again I get the following error. ...
<OneWay> Attribute is blocking (4 replies)
microsoft.public.dotnet.framework.remoting
The OneWay Attribute I am using seems to be blocking. In the server I raise the event: RaiseEvent SweepProgress() In the client I do: OneWay Public Sub SweepProgressRcvd() I do an AddHandler to apply the handling to the above method. I then kill my client leaving the event in the invocationlist. When I fire the event now the exception is suppressed but it takes as long as if the exception is being...
Newbe: Remoting Development experience and performace (2 replies)
microsoft.public.dotnet.framework.remoting
We just started looking at .Net remoting for a distributed project, as a alternative to having business object placed on clients and connection to a SQL server direct. One of my concern is that the development experience is not optimize. Can you have a VS.NET Solution with both server and client projects, where debugging can between across client and server. Do we get allot of limitations when cre...
how to access a singleton from server side? (2 replies)
microsoft.public.dotnet.framework.remoting
My server publishes a singleton using the exe.config file. Now, each client can access the one and only object living on the server (after the first call of a client). Further I'd like to get access to this object from server side. I've done this by using Activator.GetObject(type, url) . Is there a better way to do this (since the object lives inside my appdomain)? thanks for comments Markus
Free portnumber (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I need to create a TcpListener and a TcpChannel on my server app. But how do I get a free port number? For now I just create a random number until I manages to find a free one. This doesn't seem like &quot;the right way&quot; to do it .... What I would like is some way to find a free portnumber or a way to create a TcpListener or TcpChannel for lisening and then get hold of the port number. /Marcus
Some methods of inherited class runs on a client instead of a server (3 replies)
microsoft.public.dotnet.framework.remoting
May be, I'm completely out but I thought, that if some class is remoted on a server that all methods of this class are running on the server side. But my class run one method on the server and other on the client side (and it crash because of missing assembly of course). It depends on, which method is overriden from parent and which is completely new (doesn't depends on calling base.xx()). What is...
rpc-SOAP styles in ASP.NET and Remoting (4 replies)
microsoft.public.dotnet.framework.remoting
Hi, i've got 2 webservices, which publish both the same method &quot;GreetMe&quot; : public string GreetMe(string name) #1 is realized with remoting and i publish this class in my service: #2 is realized in ASP.NET like this (the service is also called GreetingService): (see beneath) my client then uses one of the GreetingServices (depending on references..) like this GreetingService myGreetingService new G...
Serialization of Exception (2 replies)
microsoft.public.dotnet.framework.remoting
I have defined following exception which I'd like to throw over processes boundaries. [Serializable] public class LocalizedException : ApplicationException { public LocalizedException( string message ): base(message) { } public LocalizedException(): base(&quot;null&quot;) { } } when the exception is thrown I get following SerializationException in the Remoting Client An unhandled exception of type 'System.R...
linking in channel sinks (2 replies)
microsoft.public.dotnet.framework.remoting
Hi...I am luking at the sample of client's custom message sink sending the current thread's priority to the server's sink. I have a small general question here. Who links the custom sink we write along with other channel sinks like formatter n transport sink? Is it .NET remoting framework? we just refer to the custom sink in the config files, how does the remoting framework know where exactly to i...
How Do You Remove Event From InvocationList in VB? (2 replies)
microsoft.public.dotnet.framework.remoting
I need to remove an event from my invocationlist when my client disconnects. This way the server doesn't get an exception when the client leaves. I have seen a C# example but how do I do this in VB. I can't get to GetInvocationList in the delegate I am using. C# example I have seen below: public delegate void DelegateUsed( parameter list ); public event DelegateUsed ExampleEvent; public void Raise...
Remoting & COM+ Security Functionality (2 replies)
microsoft.public.dotnet.framework.remoting
I have a c# client sucessfully calling remote methods on objects on the server runnig in COM both Library and Server components. When I check &quot;Enforce access checks for this application&quot;, I get Access denined exceptions on the client when I try to access the remote objects. I can access the objects when I uncheck this option. I added roles and members in those roles. I added Everyone to the Roles....
object doesn't use my own sink chain (3 replies)
microsoft.public.dotnet.framework.remoting
Hello everyone! I have created my own client sink chain, that has the following sinks: BinaryClientFormatterSink MyClientSinck TcpClientTransportSink (I use TcpChannel). MyClientSinck implements IClientChannelSink. Than I try the following test: 1) Get from the channel that uses my chain first object of my class that has, for example, &quot;MyPublisher&quot; name. It works fine and I see that MyClientSinck ...
How resolve IP adress of connected to Remotable Object client (2 replies)
microsoft.public.dotnet.framework.remoting
Haw can i get IP adress of connected to my remotable object client ?
"Object type not found" error on Apache SOAP service call (.Net bug?) (2 replies)
microsoft.public.dotnet.framework.remoting
We have a .Net client calling an Apache SOAP service returning a complex type. We've started getting a really strange error lately with two different .Net applications doing the same remoting call where one fails with the error shown at the bottom of this post and one succeeds. The one that succeeds we can't duplicate, writing a simple program to do the same call also fails. The .Net code basicall...
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