Systems Security Exception

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

Hello, I have a .net exe file on a server. When I try to
execute it from a client's computer, I get a Systems
Security Exception. Is there a way for me to set the
security to "full trust" for everything is a certain file
path?

Thanks,
Sean
 
Yes, the security policy must be edited for each client machine.

A safer approach would be to add that Server as an Intranet or Trusted Site
in IE using File:// URL, but only if the default permissions for those
groups are appropriate. I wouldn't increase the permissions on those code
groups.

To see the permissions for a particular code group, use the .NET Framework
Configuration (Control Panel > Administrative Tools on XP).

If you really need Full Trust or higher permissions than Trusted Zone
allows, you can create a new code group (and optionally a custom permission
set) and set its membership conditions appropriately. There's a wizard that
can configure it for you by choosing Runtime Security Policy, then clicking
Increase Assembly Trust.

A deployment package for the security policy can also be created from the
admin tool.

HTH;
Eric Cadwell
http://www.origincontrols.com
 
The safest way is to sign your application with a strong name, and add a code group to fully trust that particular public key. You can find details on
doing this here:
http://blogs.gotdotnet.com/shawnfa/PermaLink.aspx/40884dc9-dbb7-48e7-a70f-5f1f4627410c

-Shawn

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.
--------------------
 
Back
Top