.NET security exception when running from the server...........

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Tucker

    #1

    .NET security exception when running from the server...........


    Hi,

    I recently wrote a really simple key generator for our software. It is
    designed so that it is only capable of being run from a given server, by
    checking an encrypted MAC address and other noddy stuff. When I run the
    software by double clicking it in the server folder, I get security
    exception for WMI and File I/O, however when I copy the .exe to my desktop
    and run it from there, I don't get any security exceptions.

    Does the .NET framework pick up security policy from the .EXE location, or
    from the local machine, or both? I would have thought, as the .EXE is
    running on the local machine even though it is located on the server, that
    the local machine policy would be the only thing useful for the .NET
    runtime.

    Thanks



    Robin


  • Ken Tucker [MVP]

    #2
    Re: .NET security exception when running from the server......... ..

    Hi,

    The security policy is picked up the the exe's location.

    Ken
    -----------------
    "Robin Tucker" <idontwanttobes pammedanymore@r eallyidont.com> wrote in
    message news:d6hurl$fmj $1$8300dec7@new s.demon.co.uk.. .

    Hi,

    I recently wrote a really simple key generator for our software. It is
    designed so that it is only capable of being run from a given server, by
    checking an encrypted MAC address and other noddy stuff. When I run the
    software by double clicking it in the server folder, I get security
    exception for WMI and File I/O, however when I copy the .exe to my desktop
    and run it from there, I don't get any security exceptions.

    Does the .NET framework pick up security policy from the .EXE location, or
    from the local machine, or both? I would have thought, as the .EXE is
    running on the local machine even though it is located on the server, that
    the local machine policy would be the only thing useful for the .NET
    runtime.

    Thanks



    Robin



    Comment

    Working...