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.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nhusers/68062a1d-2482-4720-87fc-a46baf2f26a2n%40googlegroups.com.

Reply via email to