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.

On Monday, September 30, 2024 at 9:03:17 PM UTC+2 Frédéric Delaporte wrote:

> The project uses a too old NHibernate. Upgrade your NHibernate reference.
>
> On Monday, September 30, 2024 at 9:01:37 PM UTC+2 fe.un...@gmail.com 
> wrote:
>
>> 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 nhusers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nhusers/cb4f8ee6-67d9-498a-bb9b-1fd7a3784f98n%40googlegroups.com.

Reply via email to