[Mono-list] Cannot comilpe with NHibernate.Linq
Costantino Pipero
cos at beeond.net
Fri Apr 2 07:34:32 EDT 2010
I am trying to write a sample using NHibernate.Linq: my code compiles (in
OpenSuse 11.2) with all the core NHibernate core azzemblies.
But when I reference NHibernate.Linq I get an error. All the required
dll's are in my project folder.
I suspect it's missing System.Data.Services which I don't think it's
implemented in Mono...
Here's the build output (thanks for your advice):
Building: DataAccess (Debug)
Performing main compilation...
/usr/bin/gmcs /noconfig
"/out:/home/cos/Projects/TestDAL/DataAccess/bin/Debug/DataAccess.dll"
"/r:System.dll"
"/r:/home/cos/Projects/TestDAL/DataAccess/NHibernate/Required_Bins/NHibernate.dll"
"/r:/home/cos/Projects/TestDAL/DataAccess/NHibernate/Required_For_LazyLoading/Castle/NHibernate.ByteCode.Castle.dll"
"/r:System.Data.dll" "/r:System.Core.dll"
"/r:/home/cos/Projects/TestDAL/DataAccess/NHibernate/Linq/NHibernate.Linq.dll"
/nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8
"/define:DEBUG" /t:library
"/home/cos/Projects/TestDAL/DataAccess/AssemblyInfo.cs"
"/home/cos/Projects/TestDAL/DataAccess/EntityBase.cs"
** (/usr/lib/mono/2.0/gmcs.exe:22260): WARNING **: The following assembly
referenced from
/home/cos/Projects/TestDAL/DataAccess/NHibernate/Linq/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 (/home/cos/Projects/TestDAL/DataAccess/NHibernate/Linq/).
** (/usr/lib/mono/2.0/gmcs.exe:22260): 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 <filename
unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespaces
(System.Reflection.Assembly assembly, System.Type extensionType) [0x00000]
in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespace
(Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in
<filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
(Mono.CSharp.CompilerContext ctx) [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/gmcs.exe:22260): WARNING **: The following assembly
referenced from
/home/cos/Projects/TestDAL/DataAccess/NHibernate/Linq/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 (/home/cos/Projects/TestDAL/DataAccess/NHibernate/Linq/).
** (/usr/lib/mono/2.0/gmcs.exe:22260): 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 <filename
unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespaces
(System.Reflection.Assembly assembly, System.Type extensionType) [0x00000]
in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespace
(Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in
<filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
(Mono.CSharp.CompilerContext ctx) [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
Build complete -- 1 error, 0 warnings
---------------------- Done ----------------------
Build: 1 error, 0 warnings
--
Costantino Pipero
443 996 8153
More information about the Mono-list
mailing list