在实体框架中工作中,“执行命令定义时发生错误”。例外 [英] In entity frame work in got "an error occurred while executing the command definition" exception

查看:109
本文介绍了在实体框架中工作中,“执行命令定义时发生错误”。例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在实体框架工作中得到以下异常。相应的代码工作正常一段时间。但有时我得到以下错误,然后我重建错误消失的代码。



你可以告诉我如何解决这个问题。



错误:发生错误执行命令定义。详见内部异常..



我尝试过:



错误:发生错误,而执行命令定义。请参阅内部异常了解详细信息.. 

解决方案

所以......你试过做它说的话,看看内部异常包含什么?

当您在调试器中运行代码并发生未处理的异常时,它会停止并向您显示异常详细信息 - 查看弹出窗口中的内部异常,它应该为您提供有关内容的信息问题是,它应该告诉你你做错了什么。



我们不能为你做到这一点:我们无法看到你的屏幕或运行你的代码!

I got below exception in Entity Frame work.the respective code working fine for some time. but in some times i got below error, then i rebuilding the code the error gone.

could you please let me know the how to solve this.

Error: An error occurred while executing the command definition. See the inner exception for details..

What I have tried:

Error: An error occurred while executing the command definition. See the inner exception for details..

解决方案

So...have you tried doing what it says, and looking at what the inner exception contains?
When you run your code in the debugger and an unhandled exception occurs, it stops and shows you the exception detail - look at the inner exception in the pop-up and it should give you information on what the problem was, which should tell you what you did wrong.

We can't do that for you: we can't see your screen or run your code!


这篇关于在实体框架中工作中,“执行命令定义时发生错误”。例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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