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.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"pnp" <pn*******@softlab.ntua.gr> wrote in message
news:ek**************@tk2msftngp13.phx.gbl...
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?