Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# kamchatka 12/24/2009 3:35 PM
Hi everybody

After a successful site project built with Cuyahoga 1.6.0 in full trust, now I have to deal with a hosting provider that uses medium trust, so I've made some search in the internet and I've understood I've to modify castle somewhere, especially dynamicproxy. Since I developed some module for cuyahoga, I prefer still to use 1.6.0, so I downloaded related castle sourcecode (1.0.3). Put AllowPartiallyTrustedCallers attribute to all needed assemblies, now I'm stuck into a SecurityException which seems to occur before suggested solutions I found in forums. It happens when into ioc container component Castle.Facilities.NHibernateIntegration.NHibernateFacility (from facilities.config) is tried to be included. Debugging line by line I see that microkernel assigns to this component SingletonLifestyle lifestyle type, and first I wonder if this is correct or there is a configuration lack or error; at the end, the exception occurs when into DefaultComponentActivator.Instantiate method, CreateInstance is simply called, I've verified that CreateInstance body is not executed, the exception occurs in the invocation.
Could someone give me a hint or help?

Greetz
Ste
# martijnb 12/27/2009 10:35 AM
I'm afraid it isn't going to work with Cuyahoga 1.6.0 and those specific Castle sources. You really need a more recent version of Castle and Cuyahoga for medium trust.