Windows exe will run from network drive but not local disk

Les Woolsey 191 Reputation points
2021-05-27T17:56:48.037+00:00

I have a .NET Windows Form application that I have developed. It is deployed to a shared directory on a computer at my client. Any computer that connects to that share can run it just fine. But it is a pretty large program and takes a long to to start up across the network (no surprise). So I copied the entire program directory (and sub directories) onto one of the users computers into directory C:\testxxx. When I go to that directory in Windows explorer and double click the exe file, the cursor shows busy for a few seconds but nothing else happens. The program does not start and the there is no error message.

The computer in question is running Windows 10 Home (Version 10.0.19042 Build 19042). It's an X64 based PC.

Can someone suggest what the problem might be and /or how we can figure out why it works from a network share but not from the local drive?

Thanks

Les

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,288 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,786 questions
{count} votes

Accepted answer
  1. Les Woolsey 191 Reputation points
    2021-06-02T19:09:59.5+00:00

    I ended up writing a program that copies the files and rewrites them to the target directory. It seems to work OK.

    1. There is nothing in the properties of the files to unblock.
    2. No files were missing - no message in event viewer
    3. No idea what SmartScreen is. But since the program runs if run from a shared folder on a another computer, this suggestion seems unlikely.
    4. All the debugger options look way to heavy to set up and test - simply writing a program was much faster & easier.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Michael Taylor 49,251 Reputation points
    2021-05-27T18:04:09.903+00:00

    Several things come to mind:

    1) Windows is blocking the app because it came from the network. Check the binaries properties in Windows Explorer and ensure there is no Unblock option in the properties UI.
    2) Some files are missing resulting in the app crashing. Check the Event Viewer to see if any errors are thrown.
    3) Smartscreen or equivalent is failing the app.


  2. Yuhan Deng 3,761 Reputation points Microsoft Vendor
    2021-05-28T07:53:04.98+00:00

    Hi,
    Maybe you can refer to this:
    https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/cannot-access-shared-folder-file-explorer

    Based on my understanding, this issue seems related to guest authorization.
    100503-image.png

    I don't have the same test environment, thus you might need to try it and see the outcome by yourself.
    Also,please check the eventlogs and see if there's any related message.

    Thanks for your time.
    Best regards,
    Danny

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments