I have moved a C# project from Visual Studio 2003 to Visual Studio 2005 Express.
I get the "unable to load dll HRESULT 0x8007007E" error when making a call to an unmanaged dll. This previously worked OK before.
I have tried putting the dll into the bin\debug directory, the windows and system32 directories with no success.
I have also added the debug directory to the environment path variable but still no success.
I have investigated trying to put a dependancy in the project on the dll but can't find a method of achieving this.
I have also tried running the application and the dll outside of the IDE in the same directory and it still can't find the dll.
Is there a difference in the way Framework 2.0 loads unmanged dlls compared to 1.1?
Additional information. I have both 1.1 and 2.0 Frameworks installed. The project still works in Visual Studio 2003.
Any help would be appreciated.