[Mono-bugs] [Bug 571590] Assembly load failure with version differences in references

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 20 11:22:33 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=571590

https://bugzilla.novell.com/show_bug.cgi?id=571590#c3


Pablo Ruiz <pruiz at netway.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pruiz at netway.org

--- Comment #3 from Pablo Ruiz <pruiz at netway.org> 2010-08-20 15:22:31 UTC ---
Similiar problem here:
 - one assembly (A.dll) referencing assembly Castle.Core v2.0.0.0.
 - one project (B.dll) referencing both, A.dll and Castle.Core v2.1.0.0

Only Castle.Core v2.1.0.0 it's available at shared libs folder (reachable thru
Hints tag on csproj file.

No dependency it's installed on GAC.

Compiling on windows works, but on mono I got:

   ** (/usr/lib/mono/2.0/gmcs.exe:31203): WARNING **: The following assembly
referenced from <Libs/NServiceBus/NServiceBus.ObjectBuilder.CastleWindsor.dll>
could not be loaded:
  Assembly:   Castle.Windsor    (assemblyref_index=2)
  Version:    2.0.0.0
  Public Key: 407dd0808d44fbdc
  The assembly was not found in the Global Assembly Cache, a path listed in the
MONO_PATH environment variable, or in the location of the executing assembly
(<Libs/NServiceBus/).>
                               ** (/usr/lib/mono/2.0/gmcs.exe:31203): WARNING
**: Could not load file or assembly 'Castle.Windsor, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies.
                               ** (/usr/lib/mono/2.0/gmcs.exe:31203): WARNING
**: Invalid type NServiceBus.ObjectBuilder.CastleWindsor.WindsorObjectBuilder
for instance field
NServiceBus.ObjectBuilder.CastleWindsor.WindsorObjectBuilder+BuildAll>d__0:<>4__this
                               Unhandled Exception:
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot
be loaded.
                               at (wrapper managed-to-native)
System.Reflection.Assembly:GetTypes (bool)
                               at System.Reflection.Assembly.GetTypes ()
[0x00000] in <filename unknown>:0
                               at Mono.CSharp.RootNamespace.ComputeNamespaces
(System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0
                               at Mono.CSharp.RootNamespace.ComputeNamespaces
() [0x00000] in <filename unknown>:0
                               at Mono.CSharp.Driver.LoadReferences ()
[0x00000] in <filename unknown>:0
                               at Mono.CSharp.Driver.Compile () [0x00000] in
<filename unknown>:0
                               at Mono.CSharp.Driver.Main (System.String[]
args) [0x00000] in <filename unknown>:0
/usr/lib/mono/2.0/Microsoft.CSharp.targets: error : Compiler crashed with code:
1.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list