I'm attempting to use Windsor and NHibernate in a medium trust
environment and I'm running up against some problems with
permissions.

I have compiled the binaries to allow partial trust callers and this
got me a long way. What has stopped me, is a dependency on the
Castle.Service.Transations assembly when the container starts up. This
tries to creates an instance of:

Castle.Services.Transaction.CallContextActivityManager()

When this happens a security exception is raised as
CallContextActivityManager() tires to call
System.Runtime.Remoting.Messaging.CallContext.SetData() which is only
allowed if you have infrastructure permission. I'm guessing that
medium trust apps don't.

I haven't reference Castle.Service.Transaction anywhere but I assume
the NHibernate facility uses it.  Does anyone know a way around
this?

Should I dump the HNibernate facility and wire it up manually?

Thanks, Keith.

--~--~---------~--~----~------------~-------~--~----~
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