L
Lambuz
Hi there,
I've got this strange problem.
I've created a library of some assemblies and one of these
(webclient.dll) is linked inside an html tag object by using this
sintax:
<OBJECT id="myID" classid="http:WebClient.dll#namespace.WebClientClass"
/>
The assembly is correctly loaded inside IE, in fact if a try to invoke
a sample methods I've got back the correct return value.
The problem is that this assembly must use some remoting object.
All remoting confs are inside a config file put in the same virtual
directory of assembly and html file.
I always obtain an exception when I try to use this code:
RemotingConfiguration.Configure("CPRSWebClient.config");
The exception is the following:
System.Security.SecurityException: Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.
at System.Runtime.Remoting.RemotingConfiguration.Configure(String
filename)
at IBM.Cipros.Refinery.CPRSWebClient.Check()
The action that failed was: Demand The type of the first permission
that failed was: System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was: Trusted
Anyone can help me ?
I've got this strange problem.
I've created a library of some assemblies and one of these
(webclient.dll) is linked inside an html tag object by using this
sintax:
<OBJECT id="myID" classid="http:WebClient.dll#namespace.WebClientClass"
/>
The assembly is correctly loaded inside IE, in fact if a try to invoke
a sample methods I've got back the correct return value.
The problem is that this assembly must use some remoting object.
All remoting confs are inside a config file put in the same virtual
directory of assembly and html file.
I always obtain an exception when I try to use this code:
RemotingConfiguration.Configure("CPRSWebClient.config");
The exception is the following:
System.Security.SecurityException: Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.
at System.Runtime.Remoting.RemotingConfiguration.Configure(String
filename)
at IBM.Cipros.Refinery.CPRSWebClient.Check()
The action that failed was: Demand The type of the first permission
that failed was: System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was: Trusted
Anyone can help me ?