Monday, September 04, 2006

FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E

System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) This was the arcane error message I recently started getting when I tried running one of the C# projects I was trying to build. Obviously, it was some dependency that .NET was not finding.... but why couldn't it just tell me what dll it was looking for. Normally, for such problems, I fire up Fuslogvw.exe, to find the problem. But no.... FusLogvw.exe wouldnt register any error messages. After some thought, I started looking at all the dependencies my project had and found that the problem was one of the native DLLs that the project needed. Once, I put that in my output folder, voila the problem disappeared. So the solution for 0x8007007E, is search for a native DLL that your project relies on and see if its not in the application folder or the Windows\System32 folder: coz thats what is most probably causing the failuer.

No comments: