The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by dbach]

In section 5.5.3, using the client of Listing 5.9.
I start the server then run the helloclientca3 but get a security exception
which is likely related to the newer version of the SDK I am using. The
following shows the client and server invokations and the resulting exception.

Does anyone have a modified listing or .config file for this example?

Thanks,
Dennis

DsmilieotNetDotNetExamplescha_5>helloclientca3
starting HTTP Hello client...

Unhandled Exception: System.Security.SecurityException:
TypeSystem.Runtime.Remoting.Lifetime.ISponsor and the types derived from it
(such as HelloSponsor) are not permitted to be deserialized at this security
level.

DsmilieotNetDotNetExamplescha_5>helloservice helloservice.exe.http.ca.config
configuring remoting...
configFile=helloservice.exe.http.ca.config
waiting for remote calls...
hit ENTER to exit...
HelloObj activated...

System Information
Win2K -- 5.0.2195 Service Pack 4 Build 2195
UserGroups -- Administrators, Debugger Users

Microsoft .NET Framework Version
1.1.4322.573; ASP.NET Version:1.1.4322.57
import-bot (20211) [Avatar] Offline
#2
Re: Security and callback sponsor
[Originally posted by fgrimes]

Hi Dennis,

It seems to have something to do with security settings in V1.1.

You'll find a discussion and suggested solutions at
http://www.thinkdotnet.com/default.aspx?Control=DiscussionTopic&TopicID=149

Fergal