microsoft.public.dotnet.framework.remoting Archive - June 2002
Post a message to this list
Messages
Page: 12
Retrieve username in remote objects hosted in IIS (2 replies)
microsoft.public.dotnet.framework.remoting
Hi! Anybody tried to host a remote (wellknown) object in IIS using Windows Integrated Security? I have but have trouble retrieving the (domain) name/id of the user accessing my remote object. I have tried "Environment.User" which gives me the username "ASPNET", and "HttpContext.Current.User...." but "HttpContext.Current" is null. Do I have to implement an Interface or what? Thanke in advance : )
Remoting a RuntimeType object (2 replies)
microsoft.public.dotnet.framework.remoting
I am trying to write an application in C# that remotes objects in .dll's (via reflection). I have a base interface, an extended (inherited) interface for each specific object and then the object itself that implements both it's base and extended interfaces. Attempting to use an interface to remote, I am using something like this: begin pseudo code object baseObject Activator.CreateInstance(testTyp...
Object Graph Serialization (2 replies)
microsoft.public.dotnet.framework.remoting
Hi all, How can I implement the serialization of a object graph where some of the objects are referenced by an interface rather than a strong type? For example: abstract class Node : INode private INode parent; public INode Parent{ get{ return parent;} set{ parent value;} } [Serializable()] public class SimpleNode : Node { /* blah, blah, blah*/ } [Serializable()] [XmlInclude( typeof( CompositeNode...
XmlSerializer & Image data? (7 replies)
microsoft.public.dotnet.framework.remoting
I added an Image object to the class I was serializing and now it cannot be serialized. Error: "Image does not have a public default contructor." What do I need to do to serialize my image (bitmap)? Thanks, Steve
Debugging .NET Remoting (5 replies)
microsoft.public.dotnet.framework.remoting
I am trying my first .NET Remoting tests, and needless to say, it does not work. I am not sure how to start figuring out why. All programming is in C#. I am trying to use a business object to use a database object to read form the database. The database object works fine. I am trying http channel with binary formatter. I am using config files, with IIS as the server host. If I set the web.config t...
SafeNativeMethods exception when serializing (2 replies)
microsoft.public.dotnet.framework.remoting
I am trying to serialize an image object across a remoting call. I have other methods on the SAO that return string information, so I am fairly sure the configuration is ok. I have tried just returning an image directly from my method, since I thought the remoting infrastructure takes care of serialization for you when marshalling by value. I have also tried serialzing the image myself into a memo...
Must I decide to use Remoting or not when developing the client? (2 replies)
microsoft.public.dotnet.framework.remoting
One nice thing with COM/DCOM was that you could develop the client app to create an instance of a business object without the knowledge of where the object will exist when the system is deployed. One customer could choose to have the business objects installed in an Application Server, and another customer could choose to have everything installed locally. In either case, the client app creates th...
Remoting with VB.NET.... Need Help! (4 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have a service that I have written.. I want this to send messages out (its status from a string) to client pcs which will then recieve them in a gui based windows app and then do with them as it wants.. I have looked at the chatcentre example in msdn... but cant get this to work properly... Can anybody help me out with this in vb.net as everything I have found is in C#.... my vb.net is prett...
remoting a datarow (2 replies)
microsoft.public.dotnet.framework.remoting
I am having a problem remoting a datarow. I have a remote business tier that accepts various types of data via get/sets I can move a dataset from server to client and back with no problem. and pretty much anything else including a straight dim of datarow with no data in it, however as soon as the datarow contains real information I get the exception below thrown ? The type System.Xml.XmlBoundEleme...
Merge method doesn't work under remoting (3 replies)
microsoft.public.dotnet.framework.remoting
When I merge two datasets, I get two same datarows in original dataset, where it should be one!! Tables have primary keys and when I don't use remoting, it works normaly, but under remoting I get two same rows in original dataset. Why??
Missing Session State with WKOs and CAOs (2 replies)
microsoft.public.dotnet.framework.remoting
In both my WKOs and CAOs HttpContext.Current.Session is null. I have sessionState mode "InProc"/ in the web.config file. Is there anything else I have to do to get access to the Session? TIA, Michael G.
AttributeCollection and Remoting (2 replies)
microsoft.public.dotnet.framework.remoting
Hi All, My problem, rendered down, is this: 1] I want to pass a System.Component.AttributeCollection across the remote boundary. 2] This means System.Component.AttributeCollection needs to be serialized, as does the System.Attribute's inside System.Component.AttributeCollection 3] The problem is, when I do this: AttributeCollection attrs remoteobject.GetAttributeCollection(); I get an exception st...
Replacing ActiveX-Exe by NET-Component? (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, i want to replace a vb6 ActiveX Exe by a VB.NET component that is doing the same. The vb6 activeX Exe is used as an out of process component. It is started by creating an object to these in a "normal" vb6 executable. Now i want to replace the activeX exe by a NET Component. The calling executable is still vb6. I think a can do these with "remoting", but how? I can call a NET DLL from from the ...
Changing the name of a channel (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have an application which is a server and a client. Therefore, I'm using a http channel twice. I need to assign a name to one of the channels (since the default name is "http"). The only way I was able to change the name is to use the following HttpChannel constructor: HttpChannel c new HttpChannel(channelProperties,new SoapClientFormatterSinkProvider(),new SoapServerFormatterSinkProvider())...
PreAuthenticate HttpChannel Connection? (3 replies)
microsoft.public.dotnet.framework.remoting
I have this bit of code which works for my Remoting client. The server is hosted in IIS and requires authentication. IDictionary Props new Hashtable(); Props.Add("useDefaultCredentials", true); BinaryClientFormatterSinkProvider clientFormatter new BinaryClientFormatterSinkProvider(); BinaryServerFormatterSinkProvider serverFormatter new BinaryServerFormatterSinkProvider(); HttpChannel channel new ...
Problem with Client-Activated Objects and Interfaces (13 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have a small problem using client activated objects. We are trying to write an application that uses cao's, however we do not want to store the assembly which contains the object on the same machine as the client. This is easy to do if we are using sao's because all we do is write an interface which exposes the functions that the client will be calling, then we inherit our object from this i...
How to find out the origin of an Exception (2 replies)
microsoft.public.dotnet.framework.remoting
I would like to find out if a catched System.Exception was thrown in the own Application Domain or in another Application Domain. How can I find it out from the catched System.Exception? Thanks Joerg
Transferring Large Files Effeciently Using Remoting (2 replies)
microsoft.public.dotnet.framework.remoting
I recently started work on a distributed app that requires the download and upload of large files. I used raw TCP sockets in .NET in conjunction with ..NETs serialization mechanism. Then I started looking at remoting thinking it had many advatntages over raw sockets. I started thinking about how I could transfer the files. It occurred to me that I could return a stream object and then make read ca...
Server Activated & Client Activated Objects (4 replies)
microsoft.public.dotnet.framework.remoting
Hi, what is the different between server activated objects & client activated objects? Thanks Tony
Detect client's connection and disconnection (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, is there any way I can be notified when a client is connected and disconnected? Thanks Tony
Can't pass userdefined Exception (2 replies)
microsoft.public.dotnet.framework.remoting
I have the following custom exception: [Serializable] public class ObjectDispersionException :ApplicationException { public ObjectDispersionException() { } public ObjectDispersionException(string message) : base(message) { } public ObjectDispersionException(string message, Exception inner) : base(message, inner) { } public ObjectDispersionException(SerializationInfo info, StreamingContext context)...
Issue with Remoting and Threading and Asynchronous Calls (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have made an observation, and I just wanted to get some input on it so I know where I stand. I have come across a problem, or should I say "implementation issue", with using .net Remoting while using asynchronous delegates. I have the following scenario: | | | | | Client | | | | | | | | | | | | Server 1 | | Server 2 | | | | | | Active | | Passive | | | | | Basically, I am trying to implement...
how to activate a marshalled-by-value object? (2 replies)
microsoft.public.dotnet.framework.remoting
Hello, I'm trying to remote a class, which is derived from DataSet. Unfortunately I don't know how to create a object, since the Activator methodes GetObject / CreateInstance only are suiteable for ExamGuru objects. I've tried new, but got some other problems (null object in a singleton design pattern class). Just one question more: is it possible to wrap DataSet im a ExamGuru class? Any help appreciated! T...
Advanced .Net remoting over router as well as internal - please help! (2 replies)
microsoft.public.dotnet.framework.remoting
Hello, I have a problem with .NET Remoting over TCP Channel though a router and local access. I have read the excellent article "How to use CAOs behind a firewall" at http://www.dotnetremoting.cc/FAQs/CAOS INTERNET FIREWALL.asp and noticed that I had to set the machineName of the TcpChannel to get the ..NET Remoting call to work through a NAT Router (using port forward to an internal machine). The...
Remoting very basic question (3 replies)
microsoft.public.dotnet.framework.remoting
Hi My application need to do the following(Please read the long list below!) Client accesses the business object which is on the server running as component services Client to the server access is using the remoting. Remoting will be hosted on the component services again So far I am able to do following with regard to remoting part? But still it seems that I am not yet clear on the concepts on re...
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