In a multi-dll J# browser control, the DLL containing the main J# Browser Control class uses another dll which is written in C# and contains unsafe code. I got java.lang.securityException.
Anyone can help me to deal with such situation
regards
In a multi-dll J# browser control, the DLL containing the main J# Browser Control class uses another dll which is written in C# and contains unsafe code. I got java.lang.securityException.
Anyone can help me to deal with such situation
regards
unsafe dll in J# browser control
Yahya
bobk544
You might need to change the .NET security policy on your machine, if you want to allow privileged operations to be performed by the JBC.
.NET gives permissions to the code based on its location, strong name, zone orother attributes.. If you want to give some extra permissions to say all the code coming from a particular site, you need to create a new permission set or modify an existing permission set, as required, and assign the permission set to a newly created code group, pointing to the code of interest.
For eg, if you want all the JBCs from your intranet machine 'TEST1' to be given 'Everything' permission set, you can type the following on the command prompt(path should be set to the framework folder). This will give almost all permissions to the JBCs coming from TEST1 machine..
caspol -ag LocalIntranet_Zone -site TEST1 Everything
Please note that this is not recommended !! 'Everything' is a permission set which will give the code almost all the permissions..This is just for a sample.. Please use a more restrictive permission set and give only appropriate permissions while creating new code groups.. You can check caspol - to get the help on the caspol tool and try the options. There is a .NET configuration app inside control panel\administrative tools if you would like a UI based tool to modify these settings. Modifications to be made on Runtime Security Policy\Machine\Code groups
Let me know if your question is still unanswered..
Thanks
With regards
Ashwin Raja
RIHARD D ROBERTS
Hi,
Could you please send the exception text and the little description of the call which throws this exception.
Thanks.