GithubHelp home page GithubHelp logo

Comments (4)

roji avatar roji commented on May 22, 2024 2

From @TheRubble on February 27, 2016 8:25

So I managed to find a solution to this issue. I happened to be using the rc1-update1 docker image as a base and noticed that its version of mono is outdated.

I recreated the image based upon mono version 4.2.2.30 and my initial issue was solved.

To do this either recreate and rebuild the docker file or install mono in your own docker file after the initial from statement.

Here's the command needed, I skipped the HKP part as this is done in the initial ASP.NET image.

RUN echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.2.2.30 main" > /etc/apt/sources.list.d/mono-xamarin.list \ && apt-get update \ && apt-get install -y mono-devel ca-certificates-mono fsharp mono-vbnc nuget \ && rm -rf /var/lib/apt/lists/*

Hope this helps someone.

from efcore.pg.

roji avatar roji commented on May 22, 2024

From @elvisdelima on January 22, 2016 14:6

I'm having a similar exception trying to call SignInManager.PasswordSignInAsync with npgsql provider

Role role in value(Microsoft.Data.Entity.Query.Internal.EntityQueryable1[Avant.Volt.Infrastructure.CrossCutting.Authorization.AppRole]) on [userRole].RoleId equals [role].Id where [userRole].UserId.Equals(__userId_0) select [role].Name' verb: Microsoft.Data.Entity.Query.Internal.NpgsqlQueryCompilationContextFactory[3] Optimized query model: 'from IdentityUserRole1 userRole in value(Microsoft.Data.Entity.Query.Internal.EntityQueryable1[Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole1[System.String]]) join AppRole role in value(Microsoft.Data.Entity.Query.Internal.EntityQueryable`1[Avant.Volt.Infrastructure.CrossCutting.Authorization.AppRole]) on [userRole].RoleId equals [role].Id where [userRole].UserId.Equals(__userId_0) select [role].Name'
info: Microsoft.AspNet.Hosting.Internal.HostingEngine[3]
Request finished in 0.0061ms 500

fail: Microsoft.AspNet.Server.Kestrel[13]
An unhandled exception was thrown by the application.
System.ArgumentNullException: Value cannot be null.
Parameter name: entityType

     at Microsoft.Data.Entity.Utilities.Check.NotNull[T](T value, String parameterName)
     at Microsoft.Data.Entity.NpgsqlMetadataExtensions.Npgsql(IEntityType entityType)
     at Microsoft.Data.Entity.Query.ExpressionVisitors.RelationalEntityQueryableExpressionVisitor.VisitEntityQueryable(Type elementType)
     at Microsoft.Data.Entity.Query.ExpressionVisitors.ExpressionVisitorBase.Visit(Expression expression)
     at Microsoft.Data.Entity.Query.EntityQueryModelVisitor.ReplaceClauseReferences(Expression expression, IQuerySource querySource, Boolean inProjection)
     at Microsoft.Data.Entity.Query.RelationalQueryModelVisitor.CompileJoinClauseInnerSequenceExpression(JoinClause joinClause, QueryModel queryModel)
     at Microsoft.Data.Entity.Query.EntityQueryModelVisitor.VisitJoinClause(JoinClause joinClause, QueryModel queryModel, Int32 index)
     at Microsoft.Data.Entity.Query.RelationalQueryModelVisitor.<>c__DisplayClass61_0.<VisitJoinClause>b__0()
     at Microsoft.Data.Entity.Query.RelationalQueryModelVisitor.OptimizeJoinClause(JoinClause joinClause, QueryModel queryModel, Int32 index, Action baseVisitAction, MethodInfo operatorToFlatten, Boolean outerJoin)
     at Microsoft.Data.Entity.Query.RelationalQueryModelVisitor.VisitJoinClause(JoinClause joinClause, QueryModel queryModel, Int32 index)
     at Remotion.Linq.QueryModelVisitorBase.VisitBodyClauses(ObservableCollection`1 bodyClauses, QueryModel queryModel)
     at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel)
     at Microsoft.Data.Entity.Query.EntityQueryModelVisitor.VisitQueryModel(QueryModel queryModel)
     at Microsoft.Data.Entity.Query.RelationalQueryModelVisitor.VisitQueryModel(QueryModel queryModel)
     at Microsoft.Data.Entity.Query.EntityQueryModelVisitor.CreateAsyncQueryExecutor[TResult](QueryModel queryModel)
     at Microsoft.Data.Entity.Query.Internal.CompiledQueryCache.GetOrAddAsyncQuery[TResult](Object cacheKey, Func`1 compiler)
     at Microsoft.Data.Entity.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query)
     at Microsoft.Data.Entity.Query.Internal.EntityQueryable`1.System.Collections.Generic.IAsyncEnumerable<TResult>.GetEnumerator()
     at System.Linq.AsyncEnumerable.Aggregate[TSource,TAccumulate,TResult](IAsyncEnumerable`1 source, TAccumulate seed, Func`3 accumulator, Func`2 resultSelector, CancellationToken cancellationToken)
     at System.Linq.AsyncEnumerable.Aggregate[TSource,TAccumulate](IAsyncEnumerable`1 source, TAccumulate seed, Func`3 accumulator, CancellationToken cancellationToken)
     at System.Linq.AsyncEnumerable.ToList[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken)
     at Microsoft.Data.Entity.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
     at Microsoft.AspNet.Identity.EntityFramework.UserStore`4.<GetRolesAsync>d__34.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`1.<GetRolesAsync>d__100.MoveNext()

from efcore.pg.

roji avatar roji commented on May 22, 2024

From @TheRubble on February 18, 2016 19:8

Did you ever get to the bottom of this? I'm currently affected and unsure on the best direction to take.

from efcore.pg.

roji avatar roji commented on May 22, 2024

Closing for age, no longer seems to be relevant.

from efcore.pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.