Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom C 87 posts 222 karma points
    May 05, 2017 @ 10:29
    Tom C
    0

    Umbraco 7.6 with UmbracoIdentity

    Since upgrading from 7.5.9 i have been getting these errors on this line,

    var result2 = await UserManager.AddLoginAsync(user.Id, loginInfo.Login);

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Umbraco.Core.Persistence.Database.BeginTransaction(IsolationLevel isolationLevel)
       at UmbracoIdentity.ExternalLoginStore.SaveUserLogins(Int32 memberId, IEnumerable`1 logins) in X:\Projects\Umbraco\UmbracoIdentity\src\UmbracoIdentity\ExternalLoginStore.cs:line 177
       at UmbracoIdentity.UmbracoMembersUserStore`1.<UpdateAsync>d__12.MoveNext() in X:\Projects\Umbraco\UmbracoIdentity\src\UmbracoIdentity\UmbracoMembersUserStore.cs:line 162
    --- 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.AspNet.Identity.UserManager`2.<UpdateAsync>d__5.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.AspNet.Identity.UserManager`2.<AddLoginAsync>d__61.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at U726.Controllers.UmbracoIdentityAccountController.<ExternalLoginCallback>d__13.MoveNext() in 
    
  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    May 05, 2017 @ 12:11
    Dan Diplo
    100

    Shannon just released a new version today for 7.6 so maybe check that out? See https://github.com/Shazwazza/UmbracoIdentity/releases/tag/v6.0.0

  • Tom C 87 posts 222 karma points
    May 05, 2017 @ 18:20
    Tom C
    0

    Thanks, that should fix it, yep.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies