L
Lambuz
First of all, is it possible usign .NET remoting feature inside a .NET
applet loaded into a tag object inside an HTML page ?
<OBJECT id="myID" height="150" width="300"
classid="http:applet.dll#test.applet"> </OBJECT>
If not please can anyone explain why ?
I think yes and so I'd written a small example immediately I've met a
problem.
I'm using .NET Framework v. 1.1.4322 and it's the only version
installed both client side and server side.
My test applet is correctly loaded into IE client but when I try to
setting programmatically the remoting I aways obtain a
SecurityException even if the assembly is strong name signed and client
side fully trusted.
The exception is the following:
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
at
System.Security.CodeAccessSecurityEngine.CheckTokenBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet
grants, PermissionSet denied, PermissionSet demands)
at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel
chnl) at test.applet.Check()
Could anyone help me please ?
Best regards
applet loaded into a tag object inside an HTML page ?
<OBJECT id="myID" height="150" width="300"
classid="http:applet.dll#test.applet"> </OBJECT>
If not please can anyone explain why ?
I think yes and so I'd written a small example immediately I've met a
problem.
I'm using .NET Framework v. 1.1.4322 and it's the only version
installed both client side and server side.
My test applet is correctly loaded into IE client but when I try to
setting programmatically the remoting I aways obtain a
SecurityException even if the assembly is strong name signed and client
side fully trusted.
The exception is the following:
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
at
System.Security.CodeAccessSecurityEngine.CheckTokenBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet
grants, PermissionSet denied, PermissionSet demands)
at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel
chnl) at test.applet.Check()
Could anyone help me please ?
Best regards