[Mono-bugs] [Bug 542800] New: Unable to build when using class from NHibernate.dll

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 29 06:31:22 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=542800


           Summary: Unable to build when using class from NHibernate.dll
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: Jochenvanwylick at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; en-us)
AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9

When using PersistentGenericSet from NHibernate.dll I get a build error. I've
added NHibernate.dll to references and checked 'local copy'.

Mono.cecil appears to be the problem. I found Mono.cecil somewhere, added it as
assembly, copied it locally as well, didn't work.

If I do not instantiate this class, the application works fine.

My system:
Mono 2.4.2.3
MonoDevelop 20090922
Latest iPhone SDK

Actual to the class:
public virtual PersistentGenericSet<string> test {get;set;}

Build errror:
Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch  -v --nomanifest --nosign -sim
"/Users/ntry/Projects/projectT/Twoppy/bin/iPhoneSimulator/Debug/Twoppy.app" 
-r="/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
-r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
-r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll"
-r="/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"
-r="/Developer/MonoTouch/usr/lib/mono/2.1/OpenTK.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/NHibernate.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/NHibernate.Linq.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Iesi.Collections.dll"
-r="/Applications/MonoDevelop.app/Contents/MacOS/lib/MoonSDK/System.Windows.Controls.Data.dll"
-r="/Library/Frameworks/Mono.framework/Versions/2.4.2.3/lib/mono/2.1/smcs.exe"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Antlr3.Runtime.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Castle.Core.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Castle.DynamicProxy2.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/FluentNHibernate.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/log4net.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/NHibernate.ByteCode.Castle.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/System.Data.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/System.Data.Services.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/System.Data.SQLite.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/System.Data.SQLite.Linq.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Mono.Cecil.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Mono.Cecil.Mdb.dll"
-r="/Users/ntry/Projects/projectT/Twoppy/Lib/Mono.Cecil.Pdb.dll"
-r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll"
-r="/Applications/MonoDevelop.app/Contents/MacOS/lib/MoonSDK/System.Xml.Linq.dll"
-r="/Applications/MonoDevelop.app/Contents/MacOS/lib/MoonSDK/System.Windows.Controls.dll"
"/Users/ntry/Projects/projectT/Twoppy/bin/iPhoneSimulator/Debug/Twoppy.exe"
Framework is:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk
Error: while loading assemblies: System.IO.FileNotFoundException: Could not
resolve: Microsoft.VisualC, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference
name) [0x00000] 
  at Mono.Cecil.DefaultAssemblyResolver.Resolve
(Mono.Cecil.AssemblyNameReference name) [0x00000] 
  at GuiCompare.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference
name) [0x00000] 
  at MTouch.ComputeListOfAssemblies (System.Collections.Generic.HashSet`1
assemblies, Mono.Cecil.AssemblyDefinition assembly) [0x00000] 
  at MTouch.ComputeListOfAssemblies (System.Collections.Generic.HashSet`1
assemblies, Mono.Cecil.AssemblyDefinition assembly) [0x00000] 
  at MTouch.ComputeListOfAssemblies (System.Collections.Generic.HashSet`1
assemblies, Mono.Cecil.AssemblyDefinition assembly) [0x00000] 
  at MTouch.ComputeListOfAssemblies (System.String root_assembly) [0x00000] 


Reproducible: Always

Steps to Reproduce:
1. Download NHibernate
2. Create reference to NHibernate DLL
3. Create a property of PersistentGenericSet type
Actual Results:  
Application does not build

Expected Results:  
A built application

I want to get NHibernate to work on iPhone.

Earlier problems included problems that I hadn't included System.Data and
System.Data.Services. I had to compile an application in Visual Studio to
export these DLL's and import them into the iPhone application.

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


More information about the mono-bugs mailing list