Internal compiler error: Could not load type NHibernate.Cfg.Configuration

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2011-01-05T05:52:37Z Indexed on 2011/01/05 5:53 UTC
Read the original article Hit count: 264

Filed under:
|
|
|

I'm referencing the NHibernate dll version 2.1.2-GA, and am unable to compile under Mono 2.8.1. I've tried using NHibernate 3 instead and it compiles fine.

A simple example of the code that's failing is

NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration();

and the error is

Error CS0584: Internal compiler error: Could not load type 'NHibernate.Cfg.Configuration' from assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'. (CS0584)

As mentioned it compiles with no problems using NHibernate 3, does anyone have any ideas how to get it working with NHiberate 2.1.2?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about nhibernate