Security Exception?

  • Thread starter Thread starter pnp
  • Start date Start date
P

pnp

I have developed an app in C# that I'm trying to deploy in an intranet.
I would like the app to be installed in a server and to be run from a
shortcut from a client machine.
The problem is that while from the .NET wizard I set the security for
everything in the network to full, an error message occurs indecating
that the Application.ExecutablePath produced an error of type
System.Permission.FileIO ...

How can I overcome this?
 
pnp,

Instead of setting the network security to full trust, I would generate
the permission based on the strong name (if you are strong naming the
assembly) or a hash (if it doesn't get recompiled often), or place the
network location in the trusted sites for IE (.NET should pick this up and
give it full trust as a result).

This should solve your problem.

Hope this helps.
 
The problem still remains, and i get a UIPermissions error... Is there
anything else I can do? This is very frustrating?
 
Back
Top