ServerVersion'抛出了'System.InvalidOperationException'类型的异常 [英] ServerVersion' threw an exception of type 'System.InvalidOperationException'
本文介绍了ServerVersion'抛出了'System.InvalidOperationException'类型的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我试图让Asp.Net Identity与Entity Framework一起工作。
但是我没有那么远。
每次拨打
Hi
Im trying to get Asp.Net Identity to work with Entity Framework.
But im not getting that far.
Every time I call
FootModelEntities aa = new FootModelEntities();
然后我检查Connection并注意到
And then I check the Connection and noticed
ServerVersion = '(((System.Data.Entity.DbContext)(aa)).Database.Connection).ServerVersion' threw an exception of type 'System.InvalidOperationException'
为什么发生了吗?
我一直在google`ing并且无法找到任何帮助。
我正在使用实体框架6,SQL Server 2012
谢谢
Jakob
Why is that happening?
I have been google`ing and cant find any help.
Im using Entity framework 6, SQL Server 2012
Thanks
Jakob
推荐答案
这篇关于ServerVersion'抛出了'System.InvalidOperationException'类型的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文