I have written a C# application which uses an external .dll, which is loaded at runtime. The application works fine, if I copy this .dll to the bin directory of my application. Since also other applications use the external .dll I want to have it only once on the system, such that every application uses the same .dll.
So I added the corresponding path to the PATH-Environment variable.
When I delete the .dll from my bin directory and start the application I get a
System.TypeLoadException: Failed to resolve the Type
The way proposed in Visual Studio: how to set path to dll? does not work