jusbuc2k / Justin.AspNetCore.LdapAuthentication

LDAP based password authentication for ASP.NET Identity
MIT License
57 stars 19 forks source link

Issue with ASP.NET Core 2.0.0 #2

Closed joellacas closed 7 years ago

joellacas commented 7 years ago

Since this morning, I migrate my application from .NET Core 1.1 to .NET Core 2.0.0 and I get an error message from your library.

Thank you in advance....

An error occurred while starting the application.
TypeLoadException: Could not load type 'Microsoft.AspNetCore.Identity.UserManager`1' from assembly 'Microsoft.AspNetCore.Identity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
RhWeb.Startup.ConfigureServices(IServiceCollection services)
TypeLoadException: Could not load type 'Microsoft.AspNetCore.Identity.UserManager`1' from assembly 'Microsoft.AspNetCore.Identity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
RhWeb.Startup.ConfigureServices(IServiceCollection services)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
jusbuc2k commented 7 years ago

@joellacas, I'll try and do a 2.0 upgrade on this library tonight and see what happens. I haven't tried it with 2.0 yet, sorry. I'll report back my findings as soon as I can.

joellacas commented 7 years ago

@jusbuc2k Thanks for the fast answer :) My app needs to be deployed in couple weeks and this feature is the best solution for us !

jusbuc2k commented 7 years ago

@joellacas Hopefully it's something simple I can help you with. I was hoping System.DirectoryServices would make it into the 2.0 release, but it looks like it's still scheduled for 2.1 here: https://github.com/dotnet/corefx/issues/2089

joellacas commented 7 years ago

@jusbuc2k Any update ?

jusbuc2k commented 7 years ago

@joellacas, sorry I didn't get to it this weekend. I'm going to work on it now. I'll report back in bit.

jusbuc2k commented 7 years ago

@joellacas, I just pushed a preview00 version to nuget.org supporting asp.net identity 2.0 / netstandard 2.0. Try it out and report back. I tested it with a File->New Project, ASP.NET Core website in VS 2017 and it worked.

https://www.nuget.org/packages/Justin.AspNetCore.LdapAuthentication/2.0.0-preview00

joellacas commented 7 years ago

@jusbuc2k Awesome! It's work again. Thank you for your help :)

jusbuc2k commented 7 years ago

@joellacas Good to hear!