#
kamchatka
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
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