[Mono-dev] Can't find System.Data.Services 3.5.0.0 in mono 2.6.7

Arne Claassen arnec at mindtouch.com
Mon Oct 11 01:54:19 EDT 2010


Trying to run an ASP.NET MVC app using NHibernate.Linq under mono on  
RHEL5 with the mono 2.6.7 installed from the novell yum repo and  
getting the below error message. Looked at the System.Data.Services on  
disk and it is indeed 2.0 with a different public key token. Am i  
missing an rpm or is this related to http://www.mail-archive.com/mono-list@lists.ximian.com/msg32011.html? 
  Either way is there a way to get around this issue?

I can run an App using the same data layer when compiled in Visual  
Studio can copied over, but ASP.NET MVC needs to compile its app on  
start and fails on compiling.

gmcs /target:library /lib:"/var/www/bin" /debug+ /optimize- /warn:4 / 
out:"/tmp/apache-temp-aspnet-0/a3dcf9b5/App_global.asax_4a5ca72e.dll"
[...]

** (/opt/novell/mono/lib/mono/2.0/gmcs.exe:1136): WARNING **: The  
following assembly referenced from /var/www/bin/NHibernate.Linq.dll  
could not be loaded:
      Assembly:   System.Data.Services    (assemblyref_index=3)
      Version:    3.5.0.0
      Public Key: b77a5c561934e089
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 (/mono/www/bin/).


** (/opt/novell/mono/lib/mono/2.0/gmcs.exe:1136): WARNING **: Could  
not load file or assembly 'System.Data.Services, Version=3.5.0.0,  
Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its  
dependencies.

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 :0
   at Mono.CSharp.RootNamespace.ComputeNamespaces  
(System.Reflection.Assembly assembly, System.Type extensionType)  
[0x00000] in :0
   at Mono.CSharp.RootNamespace.ComputeNamespace  
(Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000]  
in :0
   at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces  
(Mono.CSharp.CompilerContext ctx) [0x00000] in :0
   at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
   at Mono.CSharp.Driver.Compile () [0x00000] in :0
   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0

thanks,
Arne Claassen

MindTouch
San Diego, CA
http://twitter.com/sdether



More information about the Mono-devel-list mailing list