Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

FileNotFound Exception in assembly load

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FaceFirst - 14 May 2004 12:26 GMT
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?
Vee Samant - 17 May 2004 21:39 GMT
> 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.
[quoted text clipped - 5 lines]
>
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.