FileNotFound Exception in assembly load

G

Guest

Please help
I have a C++ managed component that has no specific dependencies/references - I have a simple test program in C# that creates an instance of it and calls a public method
The test app reports FileNotFoundException, and reports that the C++ dll or one of its dependencies cannot be found

Note: This is running on NT4 SP6a - it works fine on Win2K and WinXP

I have run the FUSLOGVW util, and it is reporting the correct assembly location, and is not reporting any load errors

I am really stuck, can anyone help?
 
V

Vee Samant

FaceFirst said:
Please help.
I have a C++ managed component that has no specific dependencies/references - I have a simple test program in C# that creates an instance of it and calls a public method.
The test app reports FileNotFoundException, and reports that the C++ dll or one of its dependencies cannot be found.

Note: This is running on NT4 SP6a - it works fine on Win2K and WinXP.

I have run the FUSLOGVW util, and it is reporting the correct assembly location, and is not reporting any load errors.

I am really stuck, can anyone help?

I am in a similar situation:

My manageg class being exported is very simple:

namespace test
{
public _gc class CTest
{
public:
int Test()
{
return 0;
};
};
}

Now I build a class library in the dot net IDE and call it test.dll.

Then I create a consumer Dot Net console boilerplate Application:

....blah blah <mscorelib.dll> boiler plate

#using ".\test.dll" // I also tried <test.dll>
using namespace test;

int _main
{
CTest* pT;
pT->Test();
Console::WriteLine(S"(DLL)Hell(o) World");
return 0;
}

Then I build the app with very correctly set switches described in the
(fabulous???) MSDN documentation (and of course, using all the great
advice one gets from the post). Build is successful! voila'!

Then I run the console application!

BAMMMMMM....puts me in the dialog with the same exception as you
mention! I HAVE NO OTHER CODE WHATSOEVER IN MY APPLICATIONS!

If i takeout the call to pT->Test()....Of course it works fine. Alas,
it is NOT what I need.

Any of you gurus have suggestions or pointers? I have looked at many
articles and postings on this. All I have seen is a lot of
handwringing and no real solutions. I am a newbie at this game and a
lot of techno stuff on GAC and such doesn't help me. So please help in
very simple terms to this simple test application. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top