Could not load Assembly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doctorslicer

    #1

    Could not load Assembly

    Hi All,

    We have a large multi project application in MFC that we are
    converting to managed code. We have been able to add /CLR to all of
    the projects and have compiled successfully but encounter an exception
    when loading one of our Extension DLL's.

    'OurApp.exe' (Managed): Loaded '...\Debug\DLL1 .dll', Symbols loaded.
    'OurApp.exe' (Managed): Loaded '...\Debug\DLL2 .dll', Symbols loaded.
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: EETypeLoadExcep tion at memory location 0x0012d4a8..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    A first chance exception of type 'System.IO.File LoadException'
    occurred in OurApp.exe
    An unhandled exception of type 'System.IO.File LoadException' occurred
    in OurApp.exe

    Additional information: Could not load file or assembly 'DLL3,
    Version=0.0.0.0 , Culture=neutral , PublicKeyToken= null' or one of its
    dependencies. Could not find or load a type. (Exception from HRESULT:
    0x80131522)

    The exception occurs when trying to create an object defined in DLL3.

    Any help would be greatly appreciated.

    Thanks,

    Terry

  • Doctorslicer

    #2
    Re: Could not load Assembly

    I found out the problem. The Assembly wouldn't load because there are
    to many symbols.

    I enabled /GF pools strings as read-only and it runs fine in Debug.

    Thanks for listening.

    On Aug 9, 10:51 am, Doctorslicer <terry.grant... @gmail.comwrote :
    Hi All,
    >
    We have a large multi project application in MFC that we are
    converting to managed code. We have been able to add /CLR to all of
    the projects and have compiled successfully but encounter an exception
    when loading one of our Extension DLL's.
    >
    'OurApp.exe' (Managed): Loaded '...\Debug\DLL1 .dll', Symbols loaded.
    'OurApp.exe' (Managed): Loaded '...\Debug\DLL2 .dll', Symbols loaded.
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: EETypeLoadExcep tion at memory location 0x0012d4a8..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812a5b in OurApp.exe: Microsoft C++
    exception: [rethrow] at memory location 0x00000000..
    A first chance exception of type 'System.IO.File LoadException'
    occurred in OurApp.exe
    An unhandled exception of type 'System.IO.File LoadException' occurred
    in OurApp.exe
    >
    Additional information: Could not load file or assembly 'DLL3,
    Version=0.0.0.0 , Culture=neutral , PublicKeyToken= null' or one of its
    dependencies. Could not find or load a type. (Exception from HRESULT:
    0x80131522)
    >
    The exception occurs when trying to create an object defined in DLL3.
    >
    Any help would be greatly appreciated.
    >
    Thanks,
    >
    Terry

    Comment

    Working...