D
DBC User
Hi,
I have a program sitting in the network, when I double click the
program, first thing I want to do is find the application execution
path. I am using the following code
Assembly execAssembly =
System.Reflection.Assembly.GetExecutingAssembly();
string path = Path.GetPathRoot(execAssembly.Location);
When I run I get security execption on the execAssembly.Location
Does anyone know how to resolve this problem?
Thanks.
I have a program sitting in the network, when I double click the
program, first thing I want to do is find the application execution
path. I am using the following code
Assembly execAssembly =
System.Reflection.Assembly.GetExecutingAssembly();
string path = Path.GetPathRoot(execAssembly.Location);
When I run I get security execption on the execAssembly.Location
Does anyone know how to resolve this problem?
Thanks.