473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C# Remoting

I have implemented a C# class inherited from System.MarshalByRefObject
and using RegisterWellKnownServiceType to allow a web app to communicate
with a service on the same machine.

I would like to limit remoting of this class to the same machine (i.e. I
do NOT want external machines connecting to my class). Is there a way
to set security permissions for System.MarshalByRefObject to allow local
connections only?
Nov 17 '05 #1
4 1888
No, unfortunately not. This is one reason they have introduced the IpcChannel in version 2.0,

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I have implemented a C# class inherited from System.MarshalByRefObject
and using RegisterWellKnownServiceType to allow a web app to communicate
with a service on the same machine.

I would like to limit remoting of this class to the same machine (i.e. I
do NOT want external machines connecting to my class). Is there a way
to set security permissions for System.MarshalByRefObject to allow local
connections only?

Nov 17 '05 #2
Wow.... Is there something like domain authentication I can put into
place or does the object end up responsible for all of its own security?

Richard Blewett [DevelopMentor] wrote:
No, unfortunately not. This is one reason they have introduced the IpcChannel in version 2.0,

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I have implemented a C# class inherited from System.MarshalByRefObject
and using RegisterWellKnownServiceType to allow a web app to communicate
with a service on the same machine.

I would like to limit remoting of this class to the same machine (i.e. I
do NOT want external machines connecting to my class). Is there a way
to set security permissions for System.MarshalByRefObject to allow local
connections only?

Nov 17 '05 #3
No supported way in 1.x (although you'll be pleased to know they introduced it in v2.0 ;-) ). There are a couple of unsupported samples that do passthru authentication via SSPI and encryption I think. I believe they are on gotdotnet.com

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<OU*************@TK2MSFTNGP12.phx.gbl>

Wow.... Is there something like domain authentication I can put into
place or does the object end up responsible for all of its own security?
Nov 17 '05 #4
Thank you for the reply. Much obliged.
Richard Blewett [DevelopMentor] wrote:
No supported way in 1.x (although you'll be pleased to know they introduced it in v2.0 ;-) ). There are a couple of unsupported samples that do passthru authentication via SSPI and encryption I think. I believe they are on gotdotnet.com

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<OU*************@TK2MSFTNGP12.phx.gbl>

Wow.... Is there something like domain authentication I can put into
place or does the object end up responsible for all of its own security?

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
4
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.