|
-
Nov 20th, 2007, 09:08 AM
#1
Thread Starter
Lively Member
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?
-
Nov 20th, 2007, 09:24 AM
#2
Re: Running a program from a network drive
Moved from UtilityBank - Tutorials forum
-
Nov 20th, 2007, 09:54 AM
#3
Re: Running a program from a network drive
 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.
-
Nov 20th, 2007, 10:08 AM
#4
Re: Running a program from a network drive
 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.
-
Nov 20th, 2007, 11:47 AM
#5
Thread Starter
Lively Member
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?
-
Nov 20th, 2007, 01:26 PM
#6
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?
-
Nov 20th, 2007, 01:38 PM
#7
Thread Starter
Lively Member
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.
-
Nov 20th, 2007, 02:48 PM
#8
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.
-
Nov 20th, 2007, 03:20 PM
#9
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|