.NET vNext,EF7 beta6 - 调用UserMananger.FindByEmailAsync时出现Missing Method异常

时间:2015-07-09 05:17:21

标签: asp.net-core entity-framework-core

我在致电UserMananger.FindByEmailAsync

时收到此消息
Exception thrown: 'System.MissingMethodException' in EntityFramework.Core.dll

Additional information: Method not found: 'Remotion.Linq.Parsing.ExpressionVisitors.TreeEvaluation.PartialEvaluationInfo Remotion.Linq.Parsing.ExpressionVisitors.TreeEvaluation.EvaluatableTreeFindingExpressionVisitor.Analyze(System.Linq.Expressions.Expression)'.

这是我的project.json依赖项:

"EntityFramework": "7.0.0-beta6-*",
"EntityFramework.Commands": "7.0.0-beta6-*",
"EntityFramework.Core": "7.0.0-beta6-*",
"EntityFramework.SqlServer": "7.0.0-beta6-*",
"Microsoft.AspNet.DataProtection": "1.0.0-beta6-*",
"Microsoft.AspNet.Diagnostics": "1.0.0-beta6-*",
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta6-*",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta6-*",
"Microsoft.AspNet.Mvc": "6.0.0-beta6-*",
"Microsoft.AspNet.Owin": "1.0.0-beta6-*",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta6-*",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta6-*",
"Microsoft.AspNet.StaticFiles": "1.0.0-beta6-*",
"Microsoft.AspNet.WebApi.Core": "5.2.3",
"Microsoft.Framework.Configuration": "1.0.0-beta6-*",
"Microsoft.Framework.Configuration.EnvironmentVariables": "1.0.0-beta6-*",
"Microsoft.Framework.Configuration.Json": "1.0.0-beta6-*",
"Microsoft.Framework.Configuration.UserSecrets": "1.0.0-beta6-*",
"Microsoft.Framework.DependencyInjection": "1.0.0-beta6-*",
"Microsoft.Framework.DependencyInjection.Ninject": "1.0.0-beta6-*",
"Microsoft.Framework.Logging": "1.0.0-beta6-*",
"Microsoft.Framework.Logging.Console": "1.0.0-beta6-*",
"Microsoft.Owin": "3.0.1",

我错过了什么?

1 个答案:

答案 0 :(得分:1)

您似乎缺少re-linq。但是应该安装它,因为它是" EntityFramework.Core"的依赖性。

尝试删除" EntityFramework":" 7.0.0-beta6 - *",因为此软件包没有will not exist。它可能是冲突的根源?只是一个猜测。

<强>更新 您可以使用dnu list验证relinq的安装版本,并查看&#34;软件包参考&#34;。你应该有&#34; Remotion.Linq 2.0.0-alpha-004&#34;  列出