.Net applet and WebPermission
-
Hello, i've made an applet on .Net 1.1, it's uploaded here:http://arkafon.com/test.html the applet is Image editor that needs to have the ability to call the Web-Services, as well as load image from the server. During the initial start it automatically does both of this and i get: System.Security.SecurityException: Request for the permission of type System.Net.WebPermission I go to the .Net Configuration 1.1 applet, and do each of these: a) click on "Trust assembly" and put the full paht to my assembly "http://arkafon.com/ImageEditor.dll" b) add proper code groups to enterprise\machine\user levels, and tight either to strong name or url, or whatever none of these approaches doesn't help, what should i do? can it be caused by my hoster, should i add something to the web.config file? I try to Evaluate Assembly and it's written that i have unRestricted rights. THanks for help
-
Hello, i've made an applet on .Net 1.1, it's uploaded here:http://arkafon.com/test.html the applet is Image editor that needs to have the ability to call the Web-Services, as well as load image from the server. During the initial start it automatically does both of this and i get: System.Security.SecurityException: Request for the permission of type System.Net.WebPermission I go to the .Net Configuration 1.1 applet, and do each of these: a) click on "Trust assembly" and put the full paht to my assembly "http://arkafon.com/ImageEditor.dll" b) add proper code groups to enterprise\machine\user levels, and tight either to strong name or url, or whatever none of these approaches doesn't help, what should i do? can it be caused by my hoster, should i add something to the web.config file? I try to Evaluate Assembly and it's written that i have unRestricted rights. THanks for help
You code actually runs on the client-side. The client will not trust your code since it comes via the internet and not locally. I believe you have about the same issues ActiveX applets have. Anyway, this might help: http://www.developerfusion.co.uk/show/4683/[^] -- modified at 17:51 Friday 7th April, 2006
-
You code actually runs on the client-side. The client will not trust your code since it comes via the internet and not locally. I believe you have about the same issues ActiveX applets have. Anyway, this might help: http://www.developerfusion.co.uk/show/4683/[^] -- modified at 17:51 Friday 7th April, 2006
The problem is, i'm giving permissions on the clients. I've found this link Common Issue: Security Exceptions It might help, for those guys that facing the same problem
-
The problem is, i'm giving permissions on the clients. I've found this link Common Issue: Security Exceptions It might help, for those guys that facing the same problem
I've found the problem - my assembly calls web-method and loads image from another host. I suppose i should write something to web.config on that very server. can you say what? Also what's the purpose of .Assert(), when i do this:new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert(); before the method that loads image, i get this kind of exception: "System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission... Can the user somehow allow this activitiy for this particular app? like saying "Allow this app to do this un-secure activity? Yes\No", or i should always create the Code group for this assembly?
-
I've found the problem - my assembly calls web-method and loads image from another host. I suppose i should write something to web.config on that very server. can you say what? Also what's the purpose of .Assert(), when i do this:new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert(); before the method that loads image, i get this kind of exception: "System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission... Can the user somehow allow this activitiy for this particular app? like saying "Allow this app to do this un-secure activity? Yes\No", or i should always create the Code group for this assembly?
My problem is still not solved, i put some details here .Net applet and WebPermission