[Mono-aspnet-list] Fluent NHibernate & Mono 2.8
pablo.ruiz at gmail.com
Sat Jan 15 16:50:29 EST 2011
This error ("An invalid or incomplete configuration was used while creating
a SessionFactory. Check PotentialReasons collection, and InnerException for
more detail.") is not from mono, but from FluentNhibernate.
If youy check the internal exception as stated, you will find some sort of
configuration error on your FHN initialization code.
On Sat, Jan 15, 2011 at 9:43 PM, Christopher Thielen <cthielen at gmail.com>wrote:
> You're right, downgrading to Mono 2.8.1 lets me compile the test
> application but it still won't run, and trying to compile Fluent NHibernate
> 1.1 still crashes the compiler. That's not so important to me as simply
> using Fluent NHibernate.
> When I run the test program, it throws an exception:
> "An invalid or incomplete configuration was used while creating a
> SessionFactory. Check PotentialReasons collection, and InnerException for
> more detail."
> PotentialReasons is empty.
> Have you or anybody run into this, or can you run the test application? Are
> you able to use Fluent NHibernate in your own applications fine?
> On Jan 15, 2011, at 10:44 AM, Pablo Ruiz wrote:
> Same problem here.
> Looks like a 2.8.2 problem, as it goes away when downgrading back to 2.8.1.
> On Sat, Jan 15, 2011 at 9:03 AM, Chris Thielen <cthielen at gmail.com> wrote:
>> Hi everybody,
>> I'm new to C#, MVC 2, Mono, and .NET in general but I'm a seasoned
>> programmer in other languages / frameworks. I've been tasked with learning
>> and using ASP.NET MVC 2 at work and though I've got the basics down, I'm
>> having trouble with some common add-on libraries I'm hoping somebody on the
>> list will know about.
>> In particular, some teams at work use Fluent NHibernate, which seems like
>> a really nice, strongly-typed ORM solution for .NET and fits in nicely with
>> MVC 2. My problem is, it doesn't seem to compile / work on my system.
>> I'm running MonoDevelop 2.4.1 with Mono 2.8.2 on OS X 10.6.6. I've
>> downloaded the latest Fluent NHibernate (v1.1 as of this writing) and when I
>> attempt to compile the example / library, I get the following error:
>> Building: Examples.FirstProject (Debug)
>> Performing main compilation...
>> /Library/Frameworks/Mono.framework/Versions/2.8.2/bin/gmcs /noconfig
>> "/r:/Users/cthielen/Downloads/fluentnhibernate-NH2/NHibernate.dll" /nologo
>> /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG;TRACE"
>> /main:Examples.FirstProject.Program /t:exe
>> Compilation failed: 1 error(s), 0 warnings
>> error CS0011: Could not load type
>> from assembly 'FluentNHibernate, Version=188.8.131.524, Culture=neutral,
>> Build complete -- 1 error, 0 warnings
>> Now, I understand this list is about ASP.NET development on Mono and not
>> necessarily related to Fluent NHibernate, but my general inclination from
>> reading around online is that, when it comes to a Mono compatibility issue,
>> it's sometimes best to confront the Mono community first, before contacting
>> developers who may or may not care about Mono compatibility.
>> Does anybody know what might be going on here? Does anybody use Fluent
>> NHibernate on Mono?
>> Christopher Thielen
>> Mono-aspnet-list mailing list
>> Mono-aspnet-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-aspnet-list