[UnauthorizedAccessException: Attempted to perform an unauthorized operation.]
HousingBenefit.Web.Controllers.AdminAccountController..ctor() in C:\agent_rnd\_work\1\s\HousingBenefit.Solution\HousingBenefit.Web\Controllers\AdminAccountController.cs:26
lambda_method(Closure , IBuilderContext ) +226
Unity.ObjectBuilder.BuildPlan.DynamicMethod.<>c__DisplayClass16_0.<GetBuildMethod>b__0(IBuilderContext context) +35
Unity.Strategies.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +624
Unity.UnityContainer.ThrowingBuildUp(IBuilderContext context) +136
[ResolutionFailedException: Resolution of the dependency failed, type = 'HousingBenefit.Web.Controllers.AdminAccountController', name = '(none)'.
Exception occurred while: Calling constructor HousingBenefit.Web.Controllers.AdminAccountController().
Exception is: UnauthorizedAccessException - Attempted to perform an unauthorized operation.
-----------------------------------------------
At the time of the exception, the container was:
Resolving HousingBenefit.Web.Controllers.AdminAccountController,(none)
Calling constructor HousingBenefit.Web.Controllers.AdminAccountController()
]
Unity.UnityContainer.ThrowingBuildUp(IBuilderContext context) +485
HousingBenefit.Web.DependencyResolverSpy.GetService(Type serviceType) in C:\agent_rnd\_work\1\s\HousingBenefit.Solution\HousingBenefit.Web\App_Start\DIConfig.cs:202
System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +61
[InvalidOperationException: An error occurred when trying to create a controller of type 'HousingBenefit.Web.Controllers.AdminAccountController'. Make sure that the controller has a parameterless public constructor.]
System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +242
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +262
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1020
System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +35
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +143
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128
|