Spring.NET 1.3.0 (present official release) is not fully supported
under .NET 4.0 -- there are several changes that needed to be made in
the Spring.NET code to accommodate changes in .NET 4.0.

The present Spring.NET trunk (and the official 1.3.1 imminent release
scheduled for 10.31.2010) properly support .NET 4.0.  See
http://www.springframework.net/downloads/nightly/ for the most recent
trunk builds of Spring.NET.

-Steve B.

On Oct 25, 11:03 am, Waqar Sadiq <[email protected]> wrote:
> I have already tried that.  That is when I get the above exception -
> The exception is generated from spring libraries.  The exception
> disappears when my project is compiled with .NET 3.5 and appears if I
> do nothing other than change to .NET 4.0.
>
> On Oct 25, 9:29 am, Fabio Maulo <[email protected]> wrote:
>
> > You can use NH binaries compiledin NET3.5 with a project compiled with
> > C#4 compiler and pointing to .NET4. You don't need to recompile NH.
>
> > --
> > Fabio Maulo
>
> > El 25/10/2010, a las 10:48, Waqar Sadiq <[email protected]> escribió:
>
> > > I have some software that we have written and had been using on .NET
> > > 3.5.  Our software uses Spring 1.3.0 and NHibernate 2.1.2.
>
> > > I am trying to move our software to .NET 4.0.  I am currently running
> > > on a 64bit Windows 7 using Visual Studio 2010.  When I build all our
> > > software for .NET 3.5., everything runs fine.  When I build our
> > > software with .NET 4.0, I get the following exception.
>
> > > InnerException: System.BadImageFormatException
> > >       Message=The parameters and the signature of the method don't
> > > match.
> > >       Source=mscorlib
>
> > > In order to solve this problem, I am lookign for NHibernate 2.1.2 that
> > > is built for .NET 4.0.  I could do it myself but right of the bat, I
> > > am gettign quite a few compilation errors.  Is there a build of
> > > NHibernate already built for .NET 4.0 with all it dependent libraries?
>
> > > Thanks.
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/nhusers?hl=en.-Hide quoted text -
>
> > - Show quoted text -

-- 
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