Hey all, I've been going down the path of converting my app to partial trust. I use rhinocommons and the castle project and have sorted out all the "allow partial trust issues". It appears the last issue is to get nhibernate to run under medium trust. My application uses lazy loading quite a bit and disabling it isnt an option right now. Is the only way to make this work is to pregenerate proxies using NHPG? I downloaded the latest alpha and beta versions of NHPG and in both cases when I try to create the proxies I get the following exception:
Could not load file or assembly 'DynamicProxyGenAssembly2' or one of its depende ncies. The system cannot find the file specified. at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boo lean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.GenerateProxies (Con figuration nhibernateConfiguration, String modulePath) at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate (CastleProx yGeneratorOptions options) at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate (Object[] a rgs) at NHibernate.ProxyGenerators.CrossAppDomainCaller.Run() at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) at NHibernate.ProxyGenerators.CrossAppDomainCaller.RunInOtherAppDomain (Action `1 callback, Object[] args) at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate (ProxyGener atorOptions options) at NHibernate.ProxyGenerators.Console.Program.Execute(TextWriter error, Strin g[] args) Is this a bug? The command line seems pretty straight forward (<path to NHPG>\N HPG.exe /o:MyDLL.Proxies.dll MyDLL.dll) and Castle.DynamicProxy2.dll exists in same directory as MyDLL (I've read it matters). Any help would be appreciated. Thanks in advance, Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
