Richard Bell
6/30/2004 1:01:00 PM
Ingo Rammer''s (excellent) book has a good section on this which should help
you. Just out of interest, did you consider using SSL via IIS?
"Kevin Laughridge" <laughridge@teeitup.com> wrote in message
news:27ddb237.0406291301.7c807ad2@posting.google.com...
> Hello,
> I have created an remoting application which worked quite well until I
> realized that I needed to secure my network transmission someway. To
> do this I created a custom sink which encryts and decrypts the message
> for transmission. I have used a config file for the server portion but
> I would like to stay away from a config file on the client end.
> Currently here is the code which is in my server config file:
>
> <configuration>
> <system.runtime.remoting>
> <application>
> <channels>
> <channel ref="http" port="1235">
> <serverProviders>
> <provider
> type="CustomSinks.CustomServerSinkProvider, CustomSinks"
> customSinkType="LameEncryption.LameEncryptionServerSink,
> SampleSinks" />
> <formatter ref="soap" />
> </serverProviders>
> </channel>
> </channels>
> </application>
> </system.runtime.remoting>
> </configuration>
>
> As you can see it calls the custom sink of
> Lameencryption.lameencryptionserversink, sample sinks to do the
> encryption. Now on my client I currently have this code to start the
> remoting:
>
> httpportval = 1234
> HttpString = "http://" & httpName & ":" & Httpportval &
> "/4micros.soap"
>
> Dim mgr As IMicrosManager =
> CType(Activator.GetObject(GetType(IMicrosManager), HttpString),
> IMicrosManager)
>
>
> So I would assume that I need to change something here in the client
> which would tell the program how to use the custom sink. I have the
> book "Advanced .NET Remoting in VB .NET" if you want to refer to a
> page number, otherwise, I would love some assistance. Thanks!
>
> Kevin