system.data.entity.core.object ... [英] system.data.entity.core.object...

查看:108
本文介绍了system.data.entity.core.object ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以上帝的名义





我是MVC(Mvc4)模式的新手。我正在使用Entity Framework 6.0并收到错误,因为


无法检索元数据。无法转换'system.data.entity.core.objectscontext'类型的对象来输入'system.data.objects.objectcontext'



创建控制器时。

编译应用程序时没有错误。我在哪里需要查找错误?

In the name Of God
Hi ,

I am new to MVC(Mvc4) pattern . I am using Entity Framework 6.0 and getting error as

unable to retrive metadata. unable to cast object of type 'system.data.entity.core.objectscontext' to type 'system.data.objects.objectcontext'

While creating controller.
There is no error in compiling the application . Where do I need to look for error?

推荐答案

调试器。另外,捕获顶部堆栈帧上的所有异常,并在catch中检查 StackTrace 。或者,如果您在调试器下发现异常,请使用调试窗口调用堆栈。



-SA
Debugger. Also, catch all exceptions on the top stack frame, and, in inspect StackTrace at the point of catch. Alternatively, if you caught exception under the debugger, use debug window "Call stack".

—SA

这篇关于system.data.entity.core.object ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆