Failed to load

Analyzes .NET assemblies for types of exceptions

Moderators: Luke Jefferson, Charles Brown, AndrewH, melvyn.harbour, Chris.Allen, dom.smith

Failed to load

Postby fbkevy » Mon Oct 04, 2010 7:56 am

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()
fbkevy
 
Posts: 1
Joined: Fri Oct 01, 2010 5:16 pm

Postby nick.maidment » Mon Oct 04, 2010 10:05 am

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
nick.maidment
 
Posts: 74
Joined: Fri Jan 29, 2010 1:55 pm

What about this fail?

Postby zorghbwa » Tue Dec 14, 2010 9:37 am

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()
zorghbwa
 
Posts: 1
Joined: Tue Dec 14, 2010 9:32 am


Return to Exception Hunter 2

Who is online

Users browsing this forum: No registered users and 0 guests