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

  • Thread starter Thread starter Robin Tucker
  • Start date Start date
R

Robin Tucker

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
 
Hi,

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

Ken
-----------------
message
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top