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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. SecurityException running a winApp located on intranet

SecurityException running a winApp located on intranet

Scheduled Pinned Locked Moved C#
helpcsharpsysadminsecurityquestion
2 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.
  • J Offline
    J Offline
    joaoPaulo
    wrote on last edited by
    #1

    hi, maybe u can help me, i'll apreciate! first, sorry about my english. I have some problems with security policy, and i duno the best workaround for that.. - I just finish a "installer.exe" (a WinApp in C#), this installer perform some process, do something on regedit, create virtual directory, things like that. - This installer.exe stay on share directory on intranet server, our customers will put this installer on their intranet servers. So anybody should be able to exec the \\myserver\installers\intaller.exe or some like that... - When the guys on their own station wanna run that installer, in specifics points they get the "System.Security.SecurityException" error I workaroud this problem in my machine setting the .Net security policy to full trust. BUT, no one wants to set the security policy in his machine, cause is boring, or they dont know how do that, and a installer shoul be convenient... some body know ohter way to workaround this problem??? tanks!! blitzkrieg bop!!

    M 1 Reply Last reply
    0
    • J joaoPaulo

      hi, maybe u can help me, i'll apreciate! first, sorry about my english. I have some problems with security policy, and i duno the best workaround for that.. - I just finish a "installer.exe" (a WinApp in C#), this installer perform some process, do something on regedit, create virtual directory, things like that. - This installer.exe stay on share directory on intranet server, our customers will put this installer on their intranet servers. So anybody should be able to exec the \\myserver\installers\intaller.exe or some like that... - When the guys on their own station wanna run that installer, in specifics points they get the "System.Security.SecurityException" error I workaroud this problem in my machine setting the .Net security policy to full trust. BUT, no one wants to set the security policy in his machine, cause is boring, or they dont know how do that, and a installer shoul be convenient... some body know ohter way to workaround this problem??? tanks!! blitzkrieg bop!!

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Hi! You can create an msi file with security settings from the "Microsoft .NET Framework 1.1 Configuration" control panel and then install this together with your installer. But you should not just set internet zone to "Full Trust" (as this will open a huge security hole!), but rather strong-name your installer and then only trust this assembly. There's also (at least) an article here on CP dealing with code access security[^] Regards, mav

      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