Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

o component for supporting the service P.WebApi.Controllers. #2409


User avatar
0
dereklew created

INFO 2017-02-03 13:16:17,077 [22 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://localhost:3002/api/Register">http://localhost:3002/api/Register</a> application/json; charset=utf-8 121 DEBUG 2017-02-03 13:16:17,078 [22 ] NetCore.StaticFiles.StaticFileMiddleware - POST requests are not supported DEBUG 2017-02-03 13:16:17,078 [22 ] osoft.AspNetCore.Routing.Tree.TreeRouter - Request successfully matched the route with name '' and template 'api/Register'. DEBUG 2017-02-03 13:16:17,085 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action P.WebApi.Controllers.RegisterController.Post (P.WebApi) ERROR 2017-02-03 13:16:17,086 [22 ] Mvc.ExceptionHandling.AbpExceptionFilter - No component for supporting the service P.WebApi.Controllers.RegisterController was found Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service P.WebApi.Controllers.RegisterController was found at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional) at Microsoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory.CreateController(ControllerContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAllActionFiltersAsync>d__26.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeExceptionFilterAsync>d__25.MoveNext() DEBUG 2017-02-03 13:16:17,087 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Request was short circuited at exception filter 'Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter'. DEBUG 2017-02-03 13:16:17,087 [22 ] etCore.Mvc.Internal.ObjectResultExecutor - No information found on request to perform content negotiation. DEBUG 2017-02-03 13:16:17,087 [22 ] etCore.Mvc.Internal.ObjectResultExecutor - Selected output formatter 'Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter' and content type 'application/json' to write the response. INFO 2017-02-03 13:16:17,087 [22 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-02-03 13:16:17,087 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Keredwell.ERP.WebApi.Controllers.RegisterController.Post (P.WebApi) in 2.0728ms INFO 2017-02-03 13:16:17,087 [22 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 10.2542ms 500 application/json; charset=utf-8


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Does your Web module depends on your WebApi module ?

  • User Avatar
    0
    dereklew created

    I am trying to use Webapi, not exposing the service as webapi.