I am making my project run in a medium trust environment and have run
into a problem with the DefaultComponentActivator. It happens when the
kernel is trying to create an instance of a controller that has a
dependecy on a repository. The exception is throw on line 136 of the
DefaultComponentActivator object. I also have my object and method
decorated with Transaction attibutes from
Castle.Services.Transactions.

Here is the stack trace:
   at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance
(CreationContext context, Object[] arguments, Type[] signature)
   at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate
(CreationContext context)
   at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate
(CreationContext context)
   at
Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create
(CreationContext context)
   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve
(CreationContext context)
   at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve
(CreationContext context)
   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve
(CreationContext context)
   at
Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveServiceDependency
(CreationContext context, ComponentModel model, DependencyModel
dependency)
   at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve
(CreationContext context, ISubDependencyResolver
contextHandlerResolver, ComponentModel model, DependencyModel
dependency)
   at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments
(ConstructorCandidate constructor, CreationContext context, Type[]&
signature)
   at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate
(CreationContext context)
   at
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate
(CreationContext context)
   at
Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create
(CreationContext context)
   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve
(CreationContext context)
   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve
(CreationContext context)
   at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler
handler, Type service, IDictionary additionalArguments)
   at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler
handler, Type service)
   at Castle.MicroKernel.DefaultKernel.get_Item(Type service)
   at Castle.MicroKernel.DefaultKernel.Resolve(Type service)
   at
YABE.Web.Components.WindsorControllerFactory.GetControllerInstance
(Type controllerType)
   at System.Web.Mvc.DefaultControllerFactory.CreateController
(RequestContext requestContext, String controllerName)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase
httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext
httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest
(HttpContext httpContext)
   at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
--~--~---------~--~----~------------~-------~--~----~
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