Options

Failed to load

fbkevyfbkevy Posts: 2
edited December 14, 2010 3:37AM in Exception Hunter 2
When I add my assemble I get a message failed to load a dependent module. This file does exist in the current folder so I am unsure as to why I get this error. Can someone help?

Thanks.
Code:
An exception was encountered while trying to load the assembly C:\xxxxx\Debug\xxxx.dll.
RedGate.Exceptions.AssemblyNotLoadedException
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Exception )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Boolean )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(String )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly..ctor(IExceptionHunterSession session, String fullPathname)
at y.GetPE(String fullPathname)
at v.AddSessionAssembliesAndReferences(IEnumerable`1 filenames)
at RedGate.ExceptionHunter.UI.MainForm.<>c__DisplayClass21.<AddAssemblies>b__1d()

Caused by:

Module not found : yyyyyyy.netmodule
System.IO.FileNotFoundException
at Mono.Cecil.StructureReader.VisitModuleDefinitionCollection(ModuleDefinitionCollection modules)
at Mono.Cecil.AssemblyDefinition.Accept(IReflectionStructureVisitor visitor)
at Mono.Cecil.AssemblyFactory.GetAssembly(ImageReader irv, Boolean manifestOnly)
at Mono.Cecil.AssemblyFactory.GetAssembly(String file)
at F.LoadTypesFrom(String filename)
at F.LoadAssemblyWithFullName(String assemblyName)
at cB.a(String )
at cB.a()
at bz.LoadAssemblyFromFile(String filename)
at bs.e.PerformTask()
at bs.a()

Comments

  • Options
    While exception hunter is trying to load the dll, it seems to be having trouble locating the module "yyyyyyy.netmodule" (which I assume is referenced somehow by the dll).

    It might be worth checking the version number of the dll and the module to make sure there isn't a mismatch
  • Options
    Hi

    I got this exception while loading my assembly. Is there anything I could do to solve the problem?

    MSVS2005, EH2.1.

    -J

    An exception was encountered while trying to load the assembly C:\xxx\xxx.exe
    RedGate.Exceptions.AssemblyNotLoadedException
    at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Exception )
    at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Boolean )
    at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(String )
    at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly..ctor(IExceptionHunterSession session, String fullPathname)
    at y.GetPE(String fullPathname)
    at v.AddSessionAssembliesAndReferences(IEnumerable`1 filenames)
    at RedGate.ExceptionHunter.UI.MainForm.<>c__DisplayClass21.<AddAssemblies>b__1d()

    Caused by:

    Non valid tag for TypeDefOrRef
    Mono.Cecil.Metadata.MetadataFormatException
    at Mono.Cecil.Metadata.Utilities.GetMetadataToken(CodedIndex cidx, UInt32 data)
    at Mono.Cecil.Signatures.SignatureReader.ReadType(Byte[] data, Int32 pos, Int32& start)
    at Mono.Cecil.Signatures.SignatureReader.ReadParameter(Byte[] data, Int32 pos, Int32& start)
    at Mono.Cecil.Signatures.SignatureReader.ReadParameters(Int32 length, Byte[] data, Int32 pos)
    at Mono.Cecil.Signatures.SignatureReader.ReadMethodDefSig(MethodDefSig methodDef, Byte[] data, Int32 pos, Int32& start)
    at Mono.Cecil.Signatures.SignatureReader.VisitMethodDefSig(MethodDefSig methodDef)
    at Mono.Cecil.Signatures.MethodDefSig.Accept(ISignatureVisitor visitor)
    at Mono.Cecil.Signatures.SignatureReader.GetMethodDefSig(UInt32 index)
    at Mono.Cecil.ReflectionReader.CompleteMethods()
    at Mono.Cecil.ReflectionReader.VisitTypeDefinitionCollection(TypeDefinitionCollection types)
    at Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection(TypeDefinitionCollection types)
    at Mono.Cecil.ReflectionReader.VisitModuleDefinition(ModuleDefinition mod)
    at Mono.Cecil.StructureReader.TerminateAssemblyDefinition(AssemblyDefinition asm)
    at Mono.Cecil.AssemblyDefinition.Accept(IReflectionStructureVisitor visitor)
    at Mono.Cecil.AssemblyFactory.GetAssembly(ImageReader irv, Boolean manifestOnly)
    at Mono.Cecil.AssemblyFactory.GetAssembly(String file)
    at F.LoadTypesFrom(String filename)
    at as.LoadAssemblyWithFullName(String assemblyName)
    at cB.a(String )
    at cB.a()
    at bz.LoadAssemblyFromFile(String filename)
    at bs.e.PerformTask()
    at bs.a()
Sign In or Register to comment.