执行.net大帐户项目时出错 [英] Error occured while executing the .net big Account project
本文介绍了执行.net大帐户项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
执行命令定义时发生错误。有关详细信息,请参阅内部异常 - 执行发票代码时显示此错误。如何克服这个
"An error occurred while executing the command definition. See the inner exception for details" - This error shows while executing the invoice code. how to overcome this
{
try
{
if (_custid > 0 && _branchid > 0)
{
//_Invoiclst = accobj.GetInvoiceByCustomerID(56, 0, 1, 2).EntityList;
_Invoiclst = accobj.GetInvoiceByCustomerID(_custid, _VoucherID, ConstStrings.CompanyID, _branchid).EntityList;
cboInvoice.DataSource = _Invoiclst;
cboInvoice.DisplayMember = "InvoiceNo";
cboInvoice.ValueMember = "InvoiceID";
}
}
catch (Exception ex)
{
ShowInfoMessage(ex.Message);
}
推荐答案
嗯,有关详细信息,请参阅InnerException
: http://msdn.microsoft.com/en- us / library / system.exception.innerexception%28v = vs.110%29.aspx [ ^ ]。
我不知道知道你在异常方法中使用的方法是什么,但可能它没有足够的信息。您可以检查并显示内部异常,递归,参数,StackTrace
,完整或简单的类型名称,消息......
-SA
Well, seeInnerException
for more detail: http://msdn.microsoft.com/en-us/library/system.exception.innerexception%28v=vs.110%29.aspx[^].
I don't know what your method you use in your exception method does, but probably it is not informative enough. You can inspect and show inner exceptions, recursively, parameters,StackTrace
, full or simple type name, message…
—SA
这篇关于执行.net大帐户项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文