Results 1 to 4 of 4

Thread: Traditional DLL being loaded by .NET DLL - Unable to Find dependencies

  1. #1
    mboozell is offline Registered User
    Name: Matthew Boozell
    Organization: Breakwater Capital, LLC
    Project: In house software
    Join Date
    Apr 2007
    Posts
    4

    Traditional DLL being loaded by .NET DLL - Unable to Find dependencies

    I have added the message & stack trace to this. We have written a standard MFC DLL, and we have added ZeroC Ice to this DLL. We want to have a .NET DLL (written in C++) to load this "normal" DLL, and be used by our application. But we get message below. I have removed all the "ice" pieces (just two classes) and everything then works correctly. Any ideas would be greatly appreciated.


    ex->Message "File or assembly name SA3StrategyNETD.dll, or one of its dependencies, was not found." String*


    ex->StackTrace " at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
    at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
    at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
    at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
    at System.Reflection.Assembly.LoadFrom(String assemblyFile)
    at CStrategyLoader.LoadStrategyAssemblies(CStrategyLo ader* ) in c:\bwcode\workspace\bwtakeout_mainline\bwt\takeout \takeoutcmnapi\strategyloader.cpp:line 83"
    String*

    Matthew

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Hi Matthew,

    looking at the stack trace, as you can see, there is nothing Ice related in there at all. Also, Ice has no dependencies on the dll you are mentioning.

    I suspect that, with the Ice pieces you removed, you may have also removed the crucial bit of code that causes the dependency, probably because the Ice pieces you removed either contained application code, or a header file that forces the dll to be dragged in.

    At any rate, I don't think you problem has anything to do with Ice.

    Cheers,

    Michi.

  3. #3
    mboozell is offline Registered User
    Name: Matthew Boozell
    Organization: Breakwater Capital, LLC
    Project: In house software
    Join Date
    Apr 2007
    Posts
    4

    Unhappy

    But even if I remove all my code that uses the ICE, and just leave the refernce to <ice/ice.h> in my stdafx.h & keep the linker inputs of iced.lib & iceutild.lib, I get the same error (If I remove those last 3 bits, then everything works fine).

  4. #4
    mboozell is offline Registered User
    Name: Matthew Boozell
    Organization: Breakwater Capital, LLC
    Project: In house software
    Join Date
    Apr 2007
    Posts
    4

    Red face

    FORGET IT! I found the error, a batch file was changing my path of my system under me. Devils in the details. Thanks again for the help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to load .NET dll
    By ngambek2003 in forum Help Center
    Replies: 11
    Last Post: 10-05-2009, 01:03 PM
  2. Replies: 1
    Last Post: 11-11-2008, 02:46 PM
  3. bzip2.dll
    By sylvain in forum Help Center
    Replies: 4
    Last Post: 10-20-2008, 06:28 PM
  4. Unable to find IceUtil reference in online docs
    By vanco in forum Help Center
    Replies: 1
    Last Post: 01-10-2008, 07:11 PM
  5. use ice in dll?
    By cool stone in forum Help Center
    Replies: 4
    Last Post: 05-23-2007, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •