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. Is it possible to change Intranet Zone to Full Trust thrue code?

Is it possible to change Intranet Zone to Full Trust thrue code?

Scheduled Pinned Locked Moved C#
csharpsysadminhelpquestion
6 Posts 6 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.
  • P Offline
    P Offline
    Phrone
    wrote on last edited by
    #1

    I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?

    G S D J A 5 Replies Last reply
    0
    • P Phrone

      I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?

      G Offline
      G Offline
      Gareth H
      wrote on last edited by
      #2

      Phrone, I'd think this wouldn't be possible, else you could run any code you want on a persons computer. Also, you dont need to do this. See link. MSDN[^]

      Regards, Gareth. (FKA gareth111)

      1 Reply Last reply
      0
      • P Phrone

        I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?

        S Offline
        S Offline
        SomeGuyThatIsMe
        wrote on last edited by
        #3

        i highly doubt you can change to full trust via an application, i've tried to programatically change a handful of security settings all with negative results. Are you talking about the error you get running a .net program from a network drive because windows doesnt trust .net apps executing from a network drive, or your app is trying to write a file and the user doesnt have write permissions to the network drive? in either event i dont think theres any way to change it from the app, but you may convince whoever is deploying it to give write access to that directory for the latter problem. to solve the former you'll have to deploy it to each computer, or manually tell windows to trust that app on each system. I've had a similar problem before 6 mo or a year ago and couldnt find a work around aside from changing the setting on each computer, so i just told the users they had to locate the app on the system that would run it tho it doesnt sound like that solution will work for you.

        1 Reply Last reply
        0
        • P Phrone

          I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          NO AND IT ABSOLUTELY SHOULD NOT BE ALLOWED TO HAPPEN. Being able to do this would be a road paved in gold for malware writers. "No need to worry about user security settings we can just turn it off for them WOOHOO!"

          You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

          1 Reply Last reply
          0
          • P Phrone

            I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?

            J Offline
            J Offline
            Judah Gabriel Himango
            wrote on last edited by
            #5

            Due to user feedback, Microsoft will be adding this to .NET 3.5 Service Pack 1: .NET 3.5 SP1 apps will run with full trust from the Intranet Zone[^]. .NET 3.5 SP1 will be released this summer, so if you can wait until then, you're all set. Until then, you'd have to setup a .NET security policy.

            Life, family, faith: Give me a visit. From my latest post: "When Constantine severed the Hebrew origins of this faith in Messiah, a new religion was officially created. It is this religion that Orthodox Jews fear their relatives and friends becoming members of." Judah Himango

            1 Reply Last reply
            0
            • P Phrone

              I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?

              A Offline
              A Offline
              Anthony Mushrow
              wrote on last edited by
              #6

              It's **Through**, not Thrue. There, I'm happy.

              My current favourite word is: I'm starting to run out of fav. words!

              -SK Genius

              Game Programming articles start -here[^]-

              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