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. C#
  4. Security exception running from network

Security exception running from network

Scheduled Pinned Locked Moved C#
helpcsharpsysadminsecuritytesting
4 Posts 3 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.
  • C Offline
    C Offline
    cje
    wrote on last edited by
    #1

    I have written my first .NET app (yes, I'm a .NET newbie) very simple app just testing out some of the form functionality. Everything works well on my machine but when I copy it to our network and execute it from there I get a System.Security.SecurityException thrown (Additional Information: "Request Failed") when creating the main form, Form1. I know this is probably something simple but would really appreciate the help. I haven't done anything related to security yet (at least not that I know of!) so I would have thought that security wasn't an issue Help! I'm going nuts thanks in advance CJE

    S 1 Reply Last reply
    0
    • C cje

      I have written my first .NET app (yes, I'm a .NET newbie) very simple app just testing out some of the form functionality. Everything works well on my machine but when I copy it to our network and execute it from there I get a System.Security.SecurityException thrown (Additional Information: "Request Failed") when creating the main form, Form1. I know this is probably something simple but would really appreciate the help. I haven't done anything related to security yet (at least not that I know of!) so I would have thought that security wasn't an issue Help! I'm going nuts thanks in advance CJE

      S Offline
      S Offline
      scadaguy
      wrote on last edited by
      #2
      1. Open Control Panel -> Administrative Tools -> Microsoft .NET Framework Configuration. 2) Expand Runtime Security Policy -> Machine -> Code Groups -> All Code. 3) Select Properties from the right-click menu of LocalIntranet_Zone. 4) On the Permission Set tab change the Permission Set to FullTrust.
      C 1 Reply Last reply
      0
      • S scadaguy
        1. Open Control Panel -> Administrative Tools -> Microsoft .NET Framework Configuration. 2) Expand Runtime Security Policy -> Machine -> Code Groups -> All Code. 3) Select Properties from the right-click menu of LocalIntranet_Zone. 4) On the Permission Set tab change the Permission Set to FullTrust.
        C Offline
        C Offline
        cje
        wrote on last edited by
        #3

        YES!! you are a life saver...thanks

        H 1 Reply Last reply
        0
        • C cje

          YES!! you are a life saver...thanks

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          This is not necessarily the best idea. You're saying that you fully trust ANY code running from the Intranet zone. If you're so sure, you could do this, but a better way is to right-click on either All_Code under the machine policy, or the Intranet_Zone and add a new Url membership using the server name and directory like so: file://SERVERNAME/Directory/* (you can use more directories if you like). If you did this with the Internet_Zone code group, you're opening your machine up for any kind of .NET attack possible. The Intranet_Zone could contain code just as harmful, either intentionally or unintentionally. You'd be better off managing separate code groups for your applications and leaving the default permissions.

          -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

          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