Edit: The actual exception message is "ComponentActivator: Could not
create proxy for YABE.Web.Controllers.HomeController.
The inner exception: {"Request for the permission of type
'System.Security.Permissions.ReflectionPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed."}

On Jul 2, 9:03 am, Joe <[email protected]> wrote:
> 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.CreateInsta­nce
> (CreationContext context, Object[] arguments, Type[] signature)
>    at
> Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate
> (CreationContext context)
>    at
> Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCre­ate
> (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.ResolveServiceDepend­ency
> (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.CreateConst­ructorArguments
> (ConstructorCandidate constructor, CreationContext context, Type[]&
> signature)
>    at
> Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate
> (CreationContext context)
>    at
> Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCre­ate
> (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.HttpApplicat­ion.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