The full syntax in the node should be like this:
<property name="proxyfactory.factory_class">
NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu
</property>
Can you verify this is your entire text? Also make sure that with your DLL's you have the following:
LinFu.DynamicProxy.dll
NHibernate.ByteCode.LinFu.dll
Hope this helps. I use this for lazy loading and it works successfully with the 2.1.0GA branch (even though our branch has some backported fixes from the trunk (SqlServerCE issues)
Update 1
Ok, in my projects I reference the following assemblies:
- Antlr3.Runtime.dll
- Iesi.Collections.dll
- LinFu.DynamicProxy.dll log4net.dll
- NHibernate.byteCode.LinFu.dll
- NHibernate.dll
Can you also post your full hibernate.cfg.xml - The NHibernate configuration file
Update 2
Have you enabled log4net output? I found that the easiest way to do that was from code. Try doing something like this in your code so you can get some advanced logging:
FileAppender appender = new FileAppender();
appender.File = "nhibernate.log";
appender.LockingModel = new FileAppender.MinimalLock();
appender.ImmediateFlush = true;
pattern = "%timestamp, %thread, %level, %logger, %ndc,%message %newline";
PatternLayout pl = new PatternLayout(pattern);
appender.Layout = pl;
appender.ActivateOptions();
appender.Threshold = log4net.Core.Level.Verbose;
log4net.Config.BasicConfigurator.Configure(appender);
With this output we maybe able to further find what the cause of the issue is.
Would be nice to get a copy of your project so I can investigate and help you find the reason for your errors.
Update 3
Ok, I followed the tutorial and these are my notes and I was able to get a running example up to the update implementation:
- Added virtual clause to FirstSolution/Domain/Product.cs
- Added LinFu.DynamicProxy and NHibernate.ByteCode.LinFu assemblies to FirstSolution File
- Added NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu to the configuration file
- Changed new SchemaExport(cfg).Execute(false, true, false, false); to new SchemaExport(cfg).Execute(false, true, false);