NHibernate.ByteCode.LinFu

57 views
Skip to first unread message

FE UniPlan

unread,
Sep 30, 2024, 3:01:37 PM9/30/24
to nhusers
I recently ported an old project in visual studio 2010 that uses NHibernate to visual studio 2019. The project compiles fine but when using it I get the following error:

Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle' during configuration of proxy factory class.
Possible causes are:
- The NHibernate.Bytecode provider assembly was not deployed.
- The typeName used to initialize the 'proxyfactory.factory_class' property of the session-factory section is not well formed.

Solution:
Confirm that your deployment folder contains one of the following assemblies:
NHibernate.ByteCode.LinFu.dll
NHibernate.ByteCode.Castle.dll

I tried to load NHibernate.ByteCode.LinFu from nuget but although there are no explicit dependencies listed. I get the following error:

Severity Code Description Project File Line Status Delete
Error Could not install package 'NHibernate.ByteCode.LinFu 1.1.0'. You are trying to install it into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain references to assemblies or data files compatible with the framework. For more information, contact the package author.

How can I fix this?
Thank you.

Frédéric Delaporte

unread,
Sep 30, 2024, 3:03:17 PM9/30/24
to nhusers
The project uses a too old NHibernate. Upgrade your NHibernate reference.

Frédéric Delaporte

unread,
Sep 30, 2024, 3:04:51 PM9/30/24
to nhusers
Or if you have done that, review the release notes from the version your project was using to the one it is using now. Specifying a proxy factory is no more required since long for usual cases.

FE UniPlan

unread,
Oct 1, 2024, 2:48:37 PM10/1/24
to nhusers
OK.
Thanks

Willem Gons

unread,
Oct 1, 2024, 2:49:04 PM10/1/24
to nhu...@googlegroups.com

Hi,

If this is still relevant. The following dependencies belong together for:

NHibernate 2.1.2.4000

NHibernate.Linq 1.1.0.1001

NHibernate.ByteCode.Finfu 2.1.2.4000

LinFu.DynamicProxy 1.0.3.14911

Iesi.Collections 2.1.2.4000

 

This has been our setup since 2011

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/68062a1d-2482-4720-87fc-a46baf2f26a2n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages