我如何重新出现RowNotInTableException [英] how do I reappear the RowNotInTableException

查看:313
本文介绍了我如何重新出现RowNotInTableException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行我的程序时,它运行正常,直到两天后,一个名为RowNotINTalbeException的异常按顺序发生;令我烦恼的是,我无法重新出现。我根据MSDN测试,但是我得到indexoutofrangeexception。

请帮助

解决方案

这个链接解释了为什么你会得到那个错误。



http://msdn.microsoft.com/en-us/library/system.data.rownotintableexception%28v=vs.110%29.aspx [ ^ ]



您正在尝试访问不在数据表中的行。



您需要查看完整的堆栈跟踪以找到导致问题的代码行,然后修复该行代码,可能会检查以确保数据流甚至存在。

When running my program ,it run normally until two days later ,a exception named RowNotINTalbeException happened accdientally; to my vexation,I cannot reappear it. I test according to MSDN ,but i get the indexoutofrangeexception.
please help

解决方案

This link explains why you will get that error.

http://msdn.microsoft.com/en-us/library/system.data.rownotintableexception%28v=vs.110%29.aspx[^]

You are trying to access a row that is not in the datatable.

You need to look at a full stack trace to find the line of code causing the issue and then fix that line of code, likely checking to make sure the datarow even exists.


这篇关于我如何重新出现RowNotInTableException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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