我是新手。Net Core 2.0和Identity framework。我正在尝试在项目中使用OpenIddict。
参考文献:
OpenIddict(2.0.0-rc1-final)
OpenIddict。EntityFrameworkCore(2.0.0-rc1-final)
微软AspNetCore。身份EntityFrameworkCore(2.0.1)
我不断收到以下运行时错误:
对象名称“OpenIddictAuthorizations”无效。
以下是堆栈跟踪:
at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__108_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
---来自引发异常的前一个位置的堆栈结束跟踪---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__17.MoveNext()
---来自引发异常的前一个位置的堆栈结束跟踪---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.<ExecuteAsync>d__32.MoveNext()
它看起来像是SQL异常,但我不确定它为什么在数据库中查找名为OpenIddictAuthorizations的对象。非常感谢您的帮助。