Click here to Skip to main content
15,909,605 members
Home / Discussions / C#
   

C#

 
QuestionKey Press Event Pin
Xmen Real 17-Jul-07 0:37
professional Xmen Real 17-Jul-07 0:37 
AnswerRe: Key Press Event Pin
Nisar Inamdar17-Jul-07 0:52
Nisar Inamdar17-Jul-07 0:52 
AnswerRe: Key Press Event Pin
Stu Richardson17-Jul-07 0:55
Stu Richardson17-Jul-07 0:55 
GeneralRe: Key Press Event Pin
Xmen Real 17-Jul-07 2:25
professional Xmen Real 17-Jul-07 2:25 
Questionhow to convert english text to unicode in c# Pin
Farhan Ali17-Jul-07 0:33
Farhan Ali17-Jul-07 0:33 
AnswerRe: how to convert english text to unicode in c# Pin
Bert delaVega17-Jul-07 6:10
Bert delaVega17-Jul-07 6:10 
GeneralMessage Removed Pin
15-Aug-11 2:38
marssilen15-Aug-11 2:38 
Question.Net 2.0 remoting security question Pin
Gizz17-Jul-07 0:15
Gizz17-Jul-07 0:15 
Is it me or is the documentation on setting up a secure tcp channel in remoting particularly opaque?

Please, can someone explain to me in words (preferably) of one syllable how to use the .Net remoting 2.0 tcp security model to do the following:

Cause authentication and encryption to be required on calls to a singleton remoted object.

The scenario is: I have a huge LED display board in a call centtre. The server it is connected to (by RS232 (quaint)) exposes it's interface as a remote object. A web site on the intranet remotes in to set the text on the display. The web site is Windows authenticated, but obviously anyone with the URL of the display server could remote in and put rude messages up in the call centre.

So, how to secure?

I've got this far
IDictionary properties = new Hashtable();
properties.Add("port", 12000);
properties.Add("secure", true);
properties.Add("impersonate", true);
IChannel channel = new TcpChannel(properties, null, null);
ChannelServices.RegisterChannel(channel, true);

RemotingConfiguration.RegisterWellKnownServiceType(
    typeof(LaserDisplayBoardDriver),
    "LDB",
    WellKnownObjectMode.Singleton);


but I don't know how to consume this in the client, nor how to pass credentials.

Please help!
AnswerRe: .Net 2.0 remoting security question Pin
Gizz17-Jul-07 3:16
Gizz17-Jul-07 3:16 
QuestionReLoad Form Problem Pin
monafr8117-Jul-07 0:14
monafr8117-Jul-07 0:14 
AnswerRe: ReLoad Form Problem Pin
Luc Pattyn17-Jul-07 0:27
sitebuilderLuc Pattyn17-Jul-07 0:27 
GeneralRe: ReLoad Form Problem Pin
monafr8117-Jul-07 1:14
monafr8117-Jul-07 1:14 
GeneralRe: ReLoad Form Problem Pin
Luc Pattyn17-Jul-07 1:25
sitebuilderLuc Pattyn17-Jul-07 1:25 
GeneralRe: ReLoad Form Problem Pin
monafr8117-Jul-07 1:50
monafr8117-Jul-07 1:50 
GeneralRe: ReLoad Form Problem Pin
Luc Pattyn17-Jul-07 1:53
sitebuilderLuc Pattyn17-Jul-07 1:53 
GeneralRe: ReLoad Form Problem Pin
monafr8117-Jul-07 2:06
monafr8117-Jul-07 2:06 
GeneralRe: ReLoad Form Problem Pin
Luc Pattyn17-Jul-07 2:09
sitebuilderLuc Pattyn17-Jul-07 2:09 
AnswerRe: ReLoad Form Problem Pin
Nisar Inamdar17-Jul-07 0:27
Nisar Inamdar17-Jul-07 0:27 
GeneralRe: ReLoad Form Problem Pin
monafr8117-Jul-07 1:07
monafr8117-Jul-07 1:07 
GeneralRe: ReLoad Form Problem Pin
PhilDanger17-Jul-07 4:55
PhilDanger17-Jul-07 4:55 
GeneralRe: ReLoad Form Problem Pin
Martin#17-Jul-07 20:08
Martin#17-Jul-07 20:08 
QuestionPassing a String Array in a Dictionary to a WCF service Pin
Projjal17-Jul-07 0:10
Projjal17-Jul-07 0:10 
AnswerRe: Passing a String Array in a Dictionary to a WCF service Pin
Eduard Keilholz17-Jul-07 0:57
Eduard Keilholz17-Jul-07 0:57 
Questiona question about using sn.exe - private key Pin
mhp13017-Jul-07 0:09
mhp13017-Jul-07 0:09 
AnswerRe: a question about using sn.exe - private key Pin
Mike Dimmick17-Jul-07 1:16
Mike Dimmick17-Jul-07 1:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.