| 发表于:2007-09-07 10:05:07 楼主 |
错误信息: “/erp0905”应用程序中的服务器错误。 -------------------------------------------------------------------------------- 在位置 0 处没有任何行。 说明: 执行当前 web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: system.exception: 在位置 0 处没有任何行。 源错误: 行 78: catch (exception ex) 行 79: { 行 80: throw new exception(ex.message); 行 81: 行 82: } 源文件: f:\erp0905\distributiondepartment\contactoperational.aspx.cs 行: 80 堆栈跟踪: [exception: 在位置 0 处没有任何行。] distributiondepartment_contactoperational.bind() in f:\erp0905\distributiondepartment\contactoperational.aspx.cs:80 distributiondepartment_contactoperational.page_load(object sender, eventargs e) in f:\erp0905\distributiondepartment\contactoperational.aspx.cs:19 system.web.util.callihelper.eventargfunctioncaller(intptr fp, object o, object t, eventargs e) +13 system.web.util.callieventhandlerdelegateproxy.callback(object sender, eventargs e) +45 system.web.ui.control.onload(eventargs e) +80 system.web.ui.control.loadrecursive() +49 system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +3745 --------------------------------------------------------------------------- 程序: public datarow bind() { if (mysqlconnection.state == connectionstate.open) mysqlconnection.close(); mysqlconnection.open(); sqldataadapter sa = new sqldataadapter( "select * from contactoperational where serial = ' " + request.querystring[ "id "] + " ' ", mysqlconnection); dataset dr = new dataset(); sa.fill(dr, "contactoperational "); sa.fill(dr); try { return dr.tables[ "contactoperational "].rows[0]; } catch (exception ex) { throw new exception(ex.message); } finally { mysqlconnection.close(); } } |
|
|
|
|