Running a program from a network drive
I have a program that I am trying to use over a network drive. The program runs fine on the local drive, but it locks up when I try to run it over the network drive. I used the following code to set the security permissions for the shared folder:
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe" -q -machine -addgroup 1.2 -url "file://server/custom programs/*" FullTrust -name "Custom_programs"
When I hit the close button to end the program, I get the error "The application tried to perform a operation not allowed by the security policy."
Doers anyone know why it is not working?
Re: Running a program from a network drive
Moved from UtilityBank - Tutorials forum
Re: Running a program from a network drive
Quote:
Originally Posted by dave18
I have a program that I am trying to use over a network drive...
That's almost the same as running your app locally. Instead of trying to overcome security (which shouldn't work anyway) install Framework locally for each user.
If your business can afford Citrix I suggest you look into it - deployment is a breeze.
Re: Running a program from a network drive
Quote:
Originally Posted by RhinoBull
install Framework locally for each user.
Ditto!!!
You can run the exe from a network if you wish to make changes easier to rollout, but each user workstation should have the framework locally installed.
Re: Running a program from a network drive
The workstation that I am using has the framework installed, but it still crashes. We have over 50 workstations that will be using this program and it would be nice if it would work over the network. Am I setting up the security permissions correctly?
Re: Running a program from a network drive
What happens when you simply run that program from a desktop shortcut without any attempts to modify permissions?
What OS are you running?
Re: Running a program from a network drive
It still does not run. I am using xp pro. The program uses datareader to pull info from a sql database and displays it in a form. When I click the ok button to pull the data, the program locks up. I cannot use the exit button to close the program either. Everything works fine when it is not running over the network.
Re: Running a program from a network drive
Copy that program to a local drive and run it. If it runs ok then you have shared folder permissions issue - not with the framework original installation folder.
Directory where you store your app must be setup as shared with all necessary permissions.
Re: Running a program from a network drive
The program runs on the local harddrive
The folder is shared...share permissions are set at everyone, full control. The NTFS folder permissions are domain users, full control.
The assembly is signed and the clickonce security settings is set at full trust application