I have a .Net application which uses a couple of .Net dll's, these dll's are located in a folder which is included in the PATH environment variable, but when I start my .Net App if fails with the error:
Could not load file or assembly 'FxDoc.dll, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d4261664821' or one of its dependencies. The system cannot find the file specified.
I already have read these MSDN entries Search Path Used by Windows to Locate a DLL
and Dynamic-Link Library Search Order
Which states:
Windows then searches for the DLLs in the following sequence:
The directory where the executable module for the current process is located.
The current directory.
The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
The directories listed in the PATH environment variable.
My questions are:
- What factors could be causing this error?
- Is the above information valid for .Net?