Bill, Vincent,

With trunk version of Castle Dynamic Proxy it should not be an issue to 
run in the medium trust (ie, you don't need to pre-generate your 
lazy-loading proxies).
The change that Martijn mentions in his post got incorporated into the 
sourcebase some time ago (best part is - it improved performance 
significantly as well!).
Since then we've have just one case where a user mentioned issues when 
running in medium trust but we weren't able to reproduce it.

So as far as I know, Castle Dynamic Proxy (trunk) is compatible with 
Medium Trust. However, if someone has any issues with it, let me know.


Krzysztof

Bill Pierce wrote:
> Hey Vincent,
> NHPG has not been updated to support 2.1.1.  It's very possible that 
> NHPG is no longer required.  I would recommend you read Mr. Boland's post.
>
> http://blogs.taiga.nl/martijn/2009/06/24/new-adventures-under-medium-trust/
>
> On Tue, Nov 17, 2009 at 2:54 AM, Vincent <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     I downloaded NHibernate.ProxyGenerators source code from svn.
>     And compiles it to support NHibernate2.1.1.
>
>     When I execute "nhpg /o:MindHarbor.ECatalog.Domain.Proxies.dll
>     MindHarbor.ECatalog.Domain.dll
>     MindHarbor.ECatalog.Domain.GenSolution.dll"
>
>     I get an error as follow:
>
>     The user must provide an ADO.NET <http://ADO.NET> connection -
>     NHibernate is not
>     creating it.
>       at
>     NHibernate.Connection.UserSuppliedConnectionProvider.GetConnection()
>       at
>     NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare
>     ()
>       at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords
>     (Dialect dia
>     lect, IConnectionHelper connectionHelper)
>       at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update
>     (ISessionFactory sessi
>     onFactory)
>       at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg,
>     IMapping mappi
>     ng, Settings settings, EventListeners listeners)
>       at NHibernate.Cfg.Configuration.BuildSessionFactory()
>       at
>     NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.GenerateProxies
>     (Con
>     figuration nhibernateConfiguration, String modulePath) in
>     d:\SourceCode
>     \OpenSour
>     ce\NHContrib\src\NHibernate.ProxyGenerators\src
>     \NHibernate.ProxyGenerators.Castl
>     e\CastleProxyGenerator.cs:line 156
>       at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate
>     (CastleProx
>     yGeneratorOptions options) in d:\SourceCode\OpenSource\NHContrib\src
>     \NHibernate.
>     ProxyGenerators\src\NHibernate.ProxyGenerators.Castle
>     \CastleProxyGenerator.cs:li
>     ne 91
>       at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate
>     (Object[] a
>     rgs) in d:\SourceCode\OpenSource\NHContrib\src
>     \NHibernate.ProxyGenerators\src\NH
>     ibernate.ProxyGenerators.Castle\CastleProxyGenerator.cs:line 78
>       at NHibernate.ProxyGenerators.CrossAppDomainCaller.Run() in d:
>     \SourceCode\Ope
>     nSource\NHContrib\src\NHibernate.ProxyGenerators\src
>     \NHibernate.ProxyGenerators\
>     CrossAppDomainCaller.cs:line 49
>       at System.AppDomain.DoCallBack(CrossAppDomainDelegate
>     callBackDelegate)
>       at System.AppDomain.DoCallBack(CrossAppDomainDelegate
>     callBackDelegate)
>       at
>     NHibernate.ProxyGenerators.CrossAppDomainCaller.RunInOtherAppDomain
>     (Action
>     `1 callback, Object[] args) in d:\SourceCode\OpenSource\NHContrib\src
>     \NHibernate
>     .ProxyGenerators\src\NHibernate.ProxyGenerators
>     \CrossAppDomainCaller.cs:line 30
>       at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate
>     (ProxyGener
>     atorOptions options) in d:\SourceCode\OpenSource\NHContrib\src
>     \NHibernate.ProxyG
>     enerators\src\NHibernate.ProxyGenerators.Castle
>     \CastleProxyGenerator.cs:line 27
>       at NHibernate.ProxyGenerators.Console.Program.Execute(TextWriter
>     error, Strin
>     g[] args) in d:\SourceCode\OpenSource\NHContrib\src
>     \NHibernate.ProxyGenerators\s
>     rc\NHibernate.ProxyGenerators.Console\Program.cs:line 65
>
>     Could anybody help me?
>
>     Thanks.
>
>     --
>
>     You received this message because you are subscribed to the Google
>     Groups "nhusers" group.
>     To post to this group, send email to [email protected]
>     <mailto:[email protected]>.
>     To unsubscribe from this group, send email to
>     [email protected]
>     <mailto:nhusers%[email protected]>.
>     For more options, visit this group at
>     http://groups.google.com/group/nhusers?hl=.
>
>
>
> --
>
> 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=.

--

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=.


Reply via email to