"File or assembly name ..., or one of its dependencies, was not found" error message

  • Thread starter Thread starter Ian Lazarus
  • Start date Start date
I

Ian Lazarus

Hello,

Project = class library dll implemented in C++ as a managed wrapper around
an unmanaged class, and a small project to consume it (shown at bottom).

Running the consumer code results in the run time error message below, at
start up, before any of the consumer code runs. What does the error message
mean and how do I debug it?

"An unhandled exception of type 'System.IO.FileNotFoundException' occurred
in Unknown Module.
Additional information: File or assembly name Project, or one of its
dependencies, was not found."

I found mention of a program called "XmlSerializerPreCompiler". Supposedly
it can be used to debug errors like this, but it reported no errors on the
project assembly. Any suggestions?

Thanks

// the consumer code is:
#include "stdafx.h"
#using <mscorlib.dll>
#using "C:\Project.dll"
int _tmain()
{
// run time error message appears before this point is reached
Project::Init(); // a static class method

return 0;
}
 
Hi Ian, It means you might wish to consider a career in the exciting field
of shoe sales. The path in the #using statement is not the same as the path
searched for at run time.
 
Back
Top