Advertisement
Guest User

Untitled

a guest
Jun 7th, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. Server Error in '/' Application.
  2. The type HttpServerUtilityBase does not have an accessible constructor.
  3. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  4.  
  5. Exception Details: System.InvalidOperationException: The type HttpServerUtilityBase does not have an accessible constructor.
  6.  
  7. Source Error:
  8.  
  9. An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
  10.  
  11. Stack Trace:
  12.  
  13.  
  14. [InvalidOperationException: The type HttpServerUtilityBase does not have an accessible constructor.]
  15. Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForNullExistingObject(IBuilderContext context) +178
  16. lambda_method(Closure , IBuilderContext ) +25
  17. Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context) +35
  18. Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +10
  19. Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +196
  20. Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +193
  21. Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey) +113
  22. Microsoft.Practices.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve(IBuilderContext context) +48
  23. lambda_method(Closure , IBuilderContext ) +108
  24. Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context) +35
  25. Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +10
  26. Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +196
  27. Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +193
  28. Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey) +113
  29. Microsoft.Practices.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve(IBuilderContext context) +48
  30. lambda_method(Closure , IBuilderContext ) +320
  31. Microsoft.Practices.ObjectBuilder2.<>c__DisplayClass1.<GetBuildMethod>b__0(IBuilderContext context) +35
  32. Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +10
  33. Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +196
  34. Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +193
  35. Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +164
  36.  
  37. [ResolutionFailedException: Resolution of the dependency failed, type = "LifeRill.Controllers.MembersController", name = "(none)".
  38. Exception occurred while: while resolving.
  39. Exception is: InvalidOperationException - The type HttpServerUtilityBase does not have an accessible constructor.
  40. -----------------------------------------------
  41. At the time of the exception, the container was:
  42.  
  43. Resolving LifeRill.Controllers.MembersController,(none)
  44. Resolving parameter "imageUploader" of constructor LifeRill.Controllers.MembersController(LifeRill.Repository.UnitOfWork unitOfWork, LifeRill.Mappers.ProfileMapper mapper, LifeRill.Services.ImageUploadService imageUploader)
  45. Resolving LifeRill.Services.ImageUploadService,(none)
  46. Resolving parameter "server" of constructor LifeRill.Services.ImageUploadService(System.Web.HttpServerUtilityBase server, System.String uploadDir)
  47. Resolving System.Web.HttpServerUtilityBase,(none)
  48. ]
  49. Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +328
  50. Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides) +15
  51. Microsoft.Practices.Unity.UnityContainerExtensions.Resolve(IUnityContainer container, Type t, ResolverOverride[] overrides) +18
  52. Unity.Mvc5.UnityDependencyResolver.GetService(Type serviceType) +67
  53. System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +41
  54.  
  55. [InvalidOperationException: An error occurred when trying to create a controller of type 'LifeRill.Controllers.MembersController'. Make sure that the controller has a parameterless public constructor.]
  56. System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +178
  57. System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +77
  58. System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +88
  59. System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +191
  60. System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +50
  61. System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
  62. System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
  63. System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +301
  64. System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement