Reputation: 34513
Inherited C# win form application - VS .NET 2008.
Project builds with no error.
Navigate to display main dialog in the IDE and error screen displays with the error.
The .dll is in the bin directory. Also, under the "References" tree in project viewer with correct path.
(All supporting files/dlls should be here.)
Any ideas how to fix this?
EDIT 1 started Fuslogvw.exe does not have anything listed. Is there something else I need to do to get this error to display here?
EDIT 2 Running "Dependency Walker" and it comes up with the error:
Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
unable to open 2 windows system32 dlls....
Upvotes: 3
Views: 11988
Reputation: 22984
I decided to answer this question because
OK, here is a recap of my situation, which you can see almost identical to OP:
Yet, Visual Studio complains (at run time):
Could not load file or assembly xxxxxx, Version=x.x.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxx or one of its dependencies. The system cannot find the file specified.
I found the solution from here, http://blogs.msdn.com/b/asiatech/archive/2013/01/09/how-to-resolve-the-could-not-load-file-or-assembly-issues-on-windows-azure-web-sites.aspx
I.e., In Visual Studio,
It might not be the ideal fix but it solved my problem. If it helps you as well, please +1 (vote up). Thanks.
Upvotes: 2