Can you list the files you have downloaded with NH3 ?

On Mon, Mar 14, 2011 at 11:35 AM, PLen <[email protected]> wrote:

> Hello,
>
> I have been using NHibernate 3.0a2 for some time with my .NET 3.5 (VS
> 2008).  When I added NHibernate, I added the NHibernate.dll and
> NHibernate.ByteCode.Castle.dll as Resources within my project.  All
> has been well with that.
>
> I recently found out that we have to run our app on some machines that
> only have .NET 2.0 installed (there are issues regarding a .NET
> upgrade).  When I found this out, I changed my Visual Studio projects
> to target the .NET 2.0 platform.  In doing so I had to change some
> code that didn't exist in .NET 2.0 (like HashSets) but it was fairly
> minimal and nothing seemed to be related to the NHibernate DLLs I
> had.  All compile just fine, but when I ran the app on a machine
> with .NET 2.0, I got the following error when trying to connect to the
> database via NHibernate:
>
> Exception = System.TypeInitializationException: The type initializer
> for 'NHibernate.Cfg.Configuration' threw an exception --->
> System.TypeInitializationException: The type initializer for
> 'NHibernate.LoggerProvider' threw an exception. --->
> System.IO.FileNotFoundException: Could not load file or assembly
> 'System.Core, Version=3.5.0.0, Culture=neutrla,
> PublicKeyToken=b77a5c561934e089' or one of its dependencies
>   at NHibernate.LoggerProvider.GetNHibernateLoggerClass()
>   at NHibernate.LoggerProvider..cctor()
>
>
> Does anyone recognize this issue?  I would have thought if there was
> an issue, it would have been found at compile time, just like with the
> other errors were found.    I am not sure if this is saying that
> although I compiled using the .NET 2.0 Framework, the internal
> dependency for NHibernate on a .NET 3.5 library was not found until
> runtime.  Does that sound right?  The bottom line is that I need to
> run in a .NET 2.0 environment (unfortunately).  Am I going to be
> forced to find an earlier NHibernate version?  Does one ven exist?
>
> Thanks for any thoughts on this - Peter
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to