[Mono-devel-list] How to find a bad referenced assembly?

Chuck Williams chuck at manawiz.com
Sat May 21 15:44:33 EDT 2005


Hi all,

I've just stated working with Mono and am trying to use a Java class
library. I've converted the Java jar file into a .Net assembly using
ikvmc with no errors reported. When I try to reference the generated
assembly in Mono (by adding an assembly reference to the dll using Edit
References - .Net Assembly in MonoDevelop), I get an error that a
referenced assembly file cannot be found. However, the error only tells
me that the unfound reference is "Assembly 0" -- it does not show me the
missing file path. The same error is generated whether or not the
solution also has an explicit reference to IKVM.GNU.Classpath.dll (ikmvc
reports that it has added this reference to the generated assembly for
the Java class library). How can I discover what the missing assembly
file path is so the issue can be addressed?

I'm running MonoDevelop version 0.7 and Mono version 1.1.6 on Debian Linux.

Thanks for any help. Here is the exception reported in MonoDevelop:

Error while executing command: AddReference

Exception ocurred: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. ---
System.IO.FileNotFoundException: Assembly 0 referenced from assembly
/home/chuck/MetaLINCS/MLCSharp/PlayTest/lucene-1.9-rc1-dev.dll not found
in 0x00000 unknown method
in (wrapper managed-to-native)
System.Reflection.Assembly:GetReferencedAssemblies ()
in 0x0029a MonoDevelop.Services.AssemblyCodeCompletionDatabase:.ctor
(System.String baseDir, System.String assemblyName,
MonoDevelop.Services.DefaultParserService parserService)
in 0x00151 MonoDevelop.Services.DefaultParserService:GetDatabase
(System.String baseDir, System.String uri)
in 0x00012 MonoDevelop.Services.DefaultParserService:GetDatabase
(System.String uri)
in 0x000d9
MonoDevelop.Services.DefaultParserService:OnProjectReferencesChanged
(System.Object sender,
MonoDevelop.Internal.Project.ProjectReferenceEventArgs args)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_ProjectReferenceEventArgs
(object,MonoDevelop.Internal.Project.ProjectReferenceEventArgs)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_ProjectReferenceEventArgs
(object,MonoDevelop.Internal.Project.ProjectReferenceEventArgs)
in 0x0001d MonoDevelop.Services.ProjectService:OnReferenceAddedToProject
(MonoDevelop.Internal.Project.ProjectReferenceEventArgs e)
in 0x00011
MonoDevelop.Services.ProjectService:NotifyReferenceAddedToProject
(System.Object sender,
MonoDevelop.Internal.Project.ProjectReferenceEventArgs e)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_ProjectReferenceEventArgs
(object,MonoDevelop.Internal.Project.ProjectReferenceEventArgs)
in 0x0001d
MonoDevelop.Internal.Project.Combine:OnReferenceAddedToProject
(MonoDevelop.Internal.Project.ProjectReferenceEventArgs e)
in 0x00011
MonoDevelop.Internal.Project.Combine:NotifyReferenceAddedToProject
(System.Object sender,
MonoDevelop.Internal.Project.ProjectReferenceEventArgs e)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_ProjectReferenceEventArgs
(object,MonoDevelop.Internal.Project.ProjectReferenceEventArgs)
in 0x0001d
MonoDevelop.Internal.Project.Project:OnReferenceAddedToProject
(MonoDevelop.Internal.Project.ProjectReferenceEventArgs e)
in 0x00040
MonoDevelop.Internal.Project.Project:NotifyReferenceAddedToProject
(MonoDevelop.Internal.Project.ProjectReference reference)
in 0x0003a
MonoDevelop.Internal.Project.ProjectReferenceCollection:OnInsertComplete
(Int32 index, System.Object value)
in 0x0007f
System.Collections.CollectionBase:System.Collections.IList.Add
(System.Object value)--- End of inner exception stack trace ---

in 0x00107 System.Reflection.MonoMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
in 0x00017 System.Reflection.MethodBase:Invoke (System.Object obj,
System.Object[] parameters)
in 0x00015 MonoDevelop.Commands.CommandHandlerInfo:Run (System.Object
cmdTarget)
in 0x002ea MonoDevelop.Commands.CommandManager:DispatchCommand
(System.Object commandId, System.Object dataItem)

Chuck




More information about the Mono-devel-list mailing list