Results 1 to 9 of 9

Thread: Running a program from a network drive

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    105

    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?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Running a program from a network drive

    Moved from UtilityBank - Tutorials forum

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    105

    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?

  6. #6

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    105

    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.

  8. #8
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    105

    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
  •  



Click Here to Expand Forum to Full Width