volosoft / castle-windsor-ms-adapter

Castle Windsor ASP.NET Core / Microsoft.Extensions.DependencyInjection Adapter
https://www.nuget.org/packages/Castle.Windsor.MsDependencyInjection
MIT License
85 stars 29 forks source link

Exception thrown in app.UseMvc in .net core 1.1 #1

Closed ondravondra closed 7 years ago

ondravondra commented 7 years ago

I am trying to use the library with Microsoft.AspNetCore.Mvc 1.1.0. With 1.0.0 it used to work fine, but when used with the new version it throws an exception at application startup. In MvcApplicationBuilderExtensions.UseMvc(this IApplicationBuilder app, Action<IRouteBuilder> configureRoutes):

Exception thrown: 'Castle.MicroKernel.ComponentActivator.NoResolvableConstructorFoundException' in Castle.Windsor.dll

Additional information: Could not find resolvable constructor for Microsoft.AspNetCore.Mvc.DataAnnotations.Internal.MvcDataAnnotationsMvcOptionsSetup. Make sure all required dependencies are provided.

hikalkan commented 7 years ago

Thanks for reporting. I just started to upgrade to AspNet Core v1.1.

ondravondra commented 7 years ago

Thanks, it seems to be working now.