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

Upgrade from 5.3.0 to 5.6.2 #5640


User avatar
0
sddev created

We're just doing an upgrade from 5.3.0 to 5.6.2

We're using a .NET Core and Angular installation.

The backend has gone through and works fine as far as I can see. However we can now no longer login.

We're just getting a failure in Angular showing status 500, Internal Server Error, url - /api/TokenAuth/Authenticate

The only thing that I can see is that in RepositoryExtensions.cs, and the lines:

public static async Task EnsureCollectionLoadedAsync<TEntity, TPrimaryKey, TProperty>(this IRepository<TEntity, TPrimaryKey> repository, TEntity entity, Expression<Func<TEntity, IEnumerable<TProperty>>> collectionExpression, CancellationToken cancellationToken = default (CancellationToken)) where TEntity : class, IEntity<TPrimaryKey> where TProperty : class { ISupportsExplicitLoading<TEntity, TPrimaryKey> supportsExplicitLoading = ProxyHelper.UnProxy((object) repository) as ISupportsExplicitLoading<TEntity, TPrimaryKey>; if (supportsExplicitLoading == null) return; await supportsExplicitLoading.EnsureCollectionLoadedAsync<TProperty>(entity, collectionExpression, cancellationToken); }

supportsExplicitLoading isn't null, it is undefined?

Any thoughts?

Simon

1 Answer(s)
  • User Avatar
    1
    sddev created

    Ignore. We didn't set the right connectionString.