We've recently received reports from clients that experience intermittent crashes of .NET applications, when running from a network location or a mapped drive, possibly under Remote Desktop session.


When you run the application from a mapped drive or a network location, the application crashes during execution. The error details, which can be found the in Windows Event Viewer are similar to the following:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException 

The Cause

This is a known Microsoft issue in Windows Server 2008 and Windows Server 2012, as described in this article

Our Solutions

  1. We've developed a small utility called AppRunner, which allows you to run the application from a network location, without having this issue. You can download AppRunner from this link

For details about how to use it please refer to the ReadMe page

  1. Using mklink to create a symbolic link.

Symbolic link are used to create a local folder that points to a remote server folder.

The folder created by the Symbolic links are transparent to users. and appear as normal local folder.

Using the mklink command allow you to point your user to the exe file on its local Hard drive.

This method allow you to enjoy the two worlds :

  1. The application will be running form the local HD and the problem is resolve.
  2. You do not need to copy the application to your user local drive, every time you have a new version.

To implement this please open command line window, and run this command :

mklink /D c:\northwind-linked \\trainingpc\c\Northwind\Dotnet" 

/D = Switch creates a directory symbolic link.

c:\northwind-linked = the name of the new folder that will be created for you on your hard drive.

\\trainingpc\c\Northwind\Dotnet = remote folder that have the application files.

Now you can see on your local hard drive a new folder named northwind-linked, and you can run the application from there.

2018 12 04 14h16 10

If needed you can create a northwind.Bat file that will do that for the end user:

If not exist c:\northwind-linked mklink /D C:\northwind-linked \\trainingpc\c\Northwind\Dotnet

cd c:\northwind-linked
start northwind.exe /ini=northwind.ini 

Help us improve, Edit this page on GitHub
or email us at