microsoft.public.dotnet.framework.remoting Archive - March 2003
Post a message to this list
Messages
Page: 12
Client implements remoting interface samples? (3 replies)
microsoft.public.dotnet.framework.remoting
Anyone know where I can get code sample illustrating clients using interfaces instead of actual assembly?
DotNet security integration with NT login. (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I am writing an application where I want to integrate the NT login with it. (Basicly, if the NT user has certain privilidge, he would be able to launch may application). Also I have other windows services written and they are need to be integrated with the NT login. Can anyone make any suggestion about how to implement it? How do you integrate the NT login security with the launching of an app...
server that is also client (2 replies)
microsoft.public.dotnet.framework.remoting
hi, did someone already succeeded in making a remoting server that also includes a client part of an other remoting server ? I'm tring to do this, and encounter many problems with the generated metadata, because of dependencies. (as i have a metadata that uses an other metadata). A simple client/server with a metadata built with soapsuds works. I tryed many solutions, watched inside each dll thank...
Hosting .NET Remoting Objects in COM+ (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I am relatively new to .NET Remoting, however in the paper Iintroduction to Microsoft .NET Remoting Framework it is mentioned that .NET Remoting can be hosted in (1) IIS, (2) a Service, (3) Managed Executable or (4) .NET Component Services. I have played around with option 1,2,3 however I am unable to get 4 to work and cannot find an examples. Can somebody point me in the right direction for a...
Lifetime service in Framework 1.1 final beta (4 replies)
microsoft.public.dotnet.framework.remoting
Is there a problem with the lifetime service in 1.1 final beta? My CAO objects don't seem to ever be getting destroyed until the server shuts down. This is code that worked in 1.0. I have the lifetime set to a leaseTime 1M, renewOnCallTime 10S and leaseManagerPollTime 2S.
Remoting clients unauthorized (2 replies)
microsoft.public.dotnet.framework.remoting
Hi All. From following the "Remoting Example: Hosting in Internet Information Services (IIS)" in the documentation I have a problem. I have a component that continually throws a System.Net.WebException "(401) Unauthorized" when I try to make a call from my client. I have the IIS application set to Windows Integerated authentication. If I use Annonymous access it doesn't throw the exception. Can an...
web service exe instead of dll (2 replies)
microsoft.public.dotnet.framework.remoting
Using web services (via IIS), can you load a .net *.exe instead of a dll somehow. William Stacey
Serialization Problem (2 replies)
microsoft.public.dotnet.framework.remoting
Hi there, I got a Service app that maintains and manipulates some data in the form of datasets. Moreover, the Service app provides that data to client applications (for browsing purposes) through sockets. For performance reasons, I convert the dataset to a simple serializable object (which contains an array of the tables' contents), then I use a BinnaryFormatter to serialize it into a stream, and ...
http relay (like loudpc.com) (3 replies)
microsoft.public.dotnet.framework.remoting
I've been designing an application similar to loudpc.com and gotomypc.com. The architecture is basically host server client. The host is behind a firewall and can not accept request from the client directly. The server acts as a relay. The client makes a request to the server via http, the host also makes a request to the server to see if there are any new request that is should respond to. The ho...
Config files and objectUri (4 replies)
microsoft.public.dotnet.framework.remoting
It would appear that if you have multiple wellknown entries in your config file, each must have a unique objectUri. Is this correct? I have the following in my config: wellknown type " namespace .PartyRemote, Business.Parties" objectUri "Business.Remoting" mode "Singleton" / wellknown type " namespace .ContentRemote, Business.Content" objectUri "Business.Remoting" mode "Singleton" / With the file ...
How to unregister a channel? (2 replies)
microsoft.public.dotnet.framework.remoting
I need to instantiate severals channels to communicate with different users, but the next time I try to run the code it's thrown an exception about an error on the channel. The first time you run the code it works, but after that it doesn't. For example TcpChannel Canal new TcpChannel(); ChannelServices.RegisterChannel(Canal); remotetype new WellKnownClientTypeEntry(typeof(NotifyClient),TargetComp...
Can't serialize object implementing IbindingList (2 replies)
microsoft.public.dotnet.framework.remoting
Hi When I try to send an object as InParameter to a remoting object i get a serializationException: "The type System.Windows.Forms.CurrencyManager in Assembly System.Windows.Forms, Version 1.0.3300.0, Culture neutral, PublicKeyToken b77a5c561934e089 is not marked as serializable." I have not explicitly using a CurrencyManager object. But the object I send to the remoting object implements Ibinding...
Remoting Server Shutdown Best Practices (2 replies)
microsoft.public.dotnet.framework.remoting
I've not seen documentation on particular 'best practices' for a .NET Remoting server's graceful Shutdown implementation. I've a server app that starts up and reads the .config file to configure remoting: RemotingConfiguration.Configure( xxx ); At shudown time, the way I see it, a well behaved Remoting Server would need to: 1.. remove configured channels from anything that's advertising them as av...
Inter-Process Communication in .NET? (4 replies)
microsoft.public.dotnet.framework.remoting
I'm looking for the best way to handle IPC in .NET: I have two objects (MarshalByRefObjects) in two different processes on the same host that currently communicate using standard .NET Remoting over a TcpChannel or HttpChannel. However, this seems like unnecessary overhead to me since the objects are local to each other and I don't even want to provide access to remote hosts. I feel like I'm missin...
Remoting security in IIS accessed by Activator.GetObject (2 replies)
microsoft.public.dotnet.framework.remoting
I am hosting a Remotable object in IIS and accessing it using Activator.GetObject() However, I now want to add security to require the client to use a username and password when connecting with the Remotable object. How can I use a username and password with Activator.GetObject()? I have used the CredentialCache and NetworkCredentials when passing a username and password to a Web Service without a...
Flaky Soapsuds (2 replies)
microsoft.public.dotnet.framework.remoting
Facts about my Server class: inherits from MarshalByRefObject. has a single public method: GetUserCredentials, which returns a WebUserPrincipal object, that inherits from System.Security.Principal.GenericPrincipal, whose Identity is a WebUserIdentity object that inherits from System.Security.Principal.GenericIdentity. Situation: have created my server class DLL and now wish to create a proxy so th...
MarshalByRefObject over HTTP channel (2 replies)
microsoft.public.dotnet.framework.remoting
I'm hosting a Web Service in IIS. Version 1 (ByVal) of my remote method is: string GetFileContents(string path); Version 2 (ByRef) is: StreamReader GetFileContents(string path); Version 1 works just fine over firewalls. Version 2 works only in LAN (over HTTP). When used over the Internet, if I call ReadToEnd() on the returned StreamReader, it says: "System.Net.WebException: The underlying connecti...
error message 11001 when window service is installed(msiinstaller) (5 replies)
microsoft.public.dotnet.framework.remoting
I installed a simple window service called ServiceOne(copied from sample book) on my windows 2000 professional comp and add installer then tried to run the installer but cannot complete installation of window service keep getting the following error after entering the user name and password. Source ServiceOne already exists on the local computer. There is no ServiceOne running as a window service ...
Forcing new assembly load on deserialization (2 replies)
microsoft.public.dotnet.framework.remoting
I have a remoting application in which the server passes objects to a client on which the assembly needed to deserialize the object is not present or has changed on the server. I have set an event handler for AppDomain.CurrentDomain.AssemblyResolve which downloads the assembly from the server. This works great if the assembly is not on the client at all. Where things get more complicated is if an ...
PrincipalPermissionAttribute only on method/class? (2 replies)
microsoft.public.dotnet.framework.remoting
When using .NET remoting, it is convenient to mark PrincipalPermissionAttribute on server methods, with some custom channel sink that take client's credential and assign something to Thread.CurrentPrincipal. But why can't I mark properties and events with PrincipalPermissionAttribute as well? What is the reason that PrincipalPermissionAttribute can only be used with methods and classes, not proper...
Creating inner classes using relection (2 replies)
microsoft.public.dotnet.framework.remoting
Hi all, I seem to be having trouble creating a nested class using relection. For example I have: public class Class1 { public class Class2 { } } Now, if I use object o new Class1.Class2() it works, but if I use object o Assembly.GetExecutingAssembly().CreateInstance("Class1.Class2"); it doesn't. Everything compiles OK but o is always null. Is there something special about creating inner classes us...
Does client have to reference a custom assembly containing remote objects? (2 replies)
microsoft.public.dotnet.framework.remoting
Hi, I have a small problem... We are thinking of using remoting for our project (3 tier business app).... I looked up an example of remoting, and based on that created my own remoting sample... the problem I ran upon was having to reference my remote assembly, and therefore, have it on a local machine in order for Activator.GetObject to know assembly type. (I think: "The whole point of remoting is...
How to change ObjectUri at runtime (4 replies)
microsoft.public.dotnet.framework.remoting
Hello, I have such situation. I start an application, configure remoting using RemotingConfiguration.RegisterWellKnownClientType(typeof(C2.C2Core.C2Core), "tcp://localhost:111/A"); After some time and need to connect to other server, using the same object type. If I run the same statment providing new URI, i receive an error "Attempt to redirect activation of type "C2.C2Core.C2Core" wchich is alre...
proxyattribute for contextbound objects (3 replies)
microsoft.public.dotnet.framework.remoting
Hi, I'm trying to develop a "standard" custom proxyattribute and realproxy pair for a context bound object. I'm having problems in implementing the CreateInstance method writing (as the d.box book suggests) : MarshalByRefObject output, target; System.Runtime.Remoting.Proxies.RealProxy rp; target base.CreateInstance(t); rp new MyExProxy(target); output (MarshalByRefObject)rp.GetTransparentProxy(); ...
~Dynamic binding: Insufficient state to deserialize the object (4 replies)
microsoft.public.dotnet.framework.remoting
Hi, Please help me with the following scenario: there is a class Base defined in the library that exists on both client and server on the client there is class Derived derived from Base, client compiles it into managed assembly dll (unsigned or signed the same result) at run time after that the client may pass this dll to the server and calls some remoting object on the server, the server loads th...
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