Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. .Net applet and WebPermission

.Net applet and WebPermission

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharphtmlcomsysadminsecurity
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheDen
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • T TheDen

      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

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • G George L Jackson

        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

        T Offline
        T Offline
        TheDen
        wrote on last edited by
        #3

        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

        T 1 Reply Last reply
        0
        • T TheDen

          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

          T Offline
          T Offline
          TheDen
          wrote on last edited by
          #4

          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?

          T 1 Reply Last reply
          0
          • T TheDen

            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?

            T Offline
            T Offline
            TheDen
            wrote on last edited by
            #5

            My problem is still not solved, i put some details here .Net applet and WebPermission

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups