Base solution for your next web application
Open Closed

Upgrade issue from 1.5.1 to 2.0.0 on MVC5+Angular 1.x #3002


User avatar
0
efijeremiah created

Hi there,

i've upgraded the nugets in my MVC5+Angular 1.x template project from 1.5.1 to 2.0.0 and go errors. some related to interface changes that i think i've figured it out. but this error stuck me from getting any progress in compiling the solution:

cannot convert from 'void' to 'Microsoft.AspNet.Identity.IdentityResult' TenantManager.cs 80 Active

your asap advice would be deeply appreciated


1 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    It may be about following line:

    CheckErrors(await TenantManager.CreateAsync(tenant));
    

    Solution If you change it to following instead:

    await TenantManager.CreateAsync(tenant);
    

    Possible cause of error CheckErrors method expect a parameter that's type is

    Microsoft.AspNet.Identity.IdentityResult
    

    But in ABP v2.0.0 following line is void type.

    await TenantManager.CreateAsync(tenant);