I'm currently using the ProxyGenerator to create static proxies for my
domain model so that I can use lazy loading when running my
application under Medium Trust (Godaddy like to make things
difficult). I am not entirely sure how Proxy generation works with
this project but I was under the impression that the version of
NHibernate and DynamicProxy2 used by the generator needs to match the
versions used in my application. I updated the code in the
ProxyGenerator to use NHibernate version 2.1.0.2002 (not sure if that
last build number is right but it should be close) and that was
correctly generating static proxies for use in my project. I started
to update the libraries to NHibernate version 2.1.0.4000 which is in
the trunk build of ActiveRecord and the proxies no longer generate
properly. It fails the tests when trying to create the proxies with
the following error:

NHibernate.ProxyGenerators.ActiveRecord.Test.ActiveRecordProxyGeneratorTester.Generates_Proxies_From_Single_Assembly:
NHibernate.ProxyGenerators.ProxyGeneratorException : c:\Users\Jason
\AppData\Local\Temp\zsnhgtou.0.cs(37,65) : error CS0246: The type or
namespace name 'PersonProxy02f5f20d1f5c483f977b1e376b2c9dc1' could not
be found (are you missing a using directive or an assembly reference?)
c:\Users\Jason\AppData\Local\Temp\zsnhgtou.0.cs(38,62) : error CS0246:
The type or namespace name 'UserProxy4c9c147782364320a85deaaca3b9dcc5'
could not be found (are you missing a using directive or an assembly
reference?)

I do not understand why the proxies have the string appended to the
end or why they are being put in those random .cs files. If anyone can
shed some light on this so I can fix it I will have a working copy of
the ProxyGenerator that people can use to generate static proxies;
however I am not savvy with open source development rules so I am not
checking in any of the code.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to