S
Steven
I have developed an application using VB.NET, it works fine in my local
drive. However, security exception is flowed when I try to run the release
program under a network drive. I have signed the exe and dll files with
sn.exe and configure the security policy in the dot net framework
configuration. Finally, I can run the program successfully on the network
drive.
My question is how can I create the security in the dot net framework
configuration automatically? Coz I want to create an installation program to
auto install the software when it is delivered to the client side. I have
tried caspol.exe but I found that it only works for the "Visual Studio .NET
2003 Command Prompt", an error message "Runtime error: Request for the
permission of type System.security.permission.RegistryPermission" is
displayed when I run it on the command dos prompt. So how can I ensure the
program work fine on the computer in client side if they put it to run on a
network drive?
drive. However, security exception is flowed when I try to run the release
program under a network drive. I have signed the exe and dll files with
sn.exe and configure the security policy in the dot net framework
configuration. Finally, I can run the program successfully on the network
drive.
My question is how can I create the security in the dot net framework
configuration automatically? Coz I want to create an installation program to
auto install the software when it is delivered to the client side. I have
tried caspol.exe but I found that it only works for the "Visual Studio .NET
2003 Command Prompt", an error message "Runtime error: Request for the
permission of type System.security.permission.RegistryPermission" is
displayed when I run it on the command dos prompt. So how can I ensure the
program work fine on the computer in client side if they put it to run on a
network drive?