Consider the following scenario:
- You have an application that loads a DLL that has a dependency on a second DLL.
- You run the application on a Windows 7-based computer.
- Your current working directory is a UNC path.
In this scenario, the dependent DLL fails to load, and a "PATH SYNTAX BAD" error is generated.
This issue occurs because, when the application searches the UNC path for the dependent DLL, the path for the current directory and the first path element are combined incorrectly.
The following is an example of a path that is combined incorrectly:
To resolve this issue, remove the quotation marks from the first entry of the path statement.
In previously mentioned example path, you would remove the quotation marks from the "c:\testing\FolderB\SubfolderB"