悬赏园豆:30
[已关闭问题]
<P>我的网页在本机调试浏览完全没问题<BR>发到服务器之后一段时间后就报这种错误<BR>一般按常理应该是读取器对象使用后没有关闭,但我在这个小网站中没有使用过读取器对象,就是一个command和Dataset<BR>至今也没搞明白,是什么原因,请求各位帮忙分析一下,都研究大半天也没打出原因!</P>
<P><FONT color=#008000><STRONG>下面这是在网页所报的错误!</STRONG></FONT> </P>
<P><FONT color=#ff0000 size=5>Server Error in '/' Application.</FONT><BR><FONT color=#ff0000>--------------------------------------------------------------------------------</FONT></P>
<P><FONT color=#ff0000>未指定的错误</FONT> <BR>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </P>
<P>Exception Details: System.Data.OleDb.OleDbException: 未指定的错误</P>
<P>--------------------------------------------------------------------</P>
<P>这是我使用的OleDb的操作类</P>
<P>using System;<BR>using System.Web;<BR>using System.Collections.Generic;<BR>using System.Text;<BR>using System.Collections;<BR>using System.Data;<BR>using System.Data.OleDb;<BR>using System.Configuration;<BR>using System.ComponentModel;</P>
<P>namespace OleDbHelper<BR>{<BR> public class OleDbHelper<BR> {<BR> /// 连接数据源<BR> private OleDbConnection MyConn = null;<BR> //private readonly string RETURNVALUE = "RETURNVALUE";</P>
<P> /// <summary><BR> /// 打开数据库连接.<BR> /// </summary><BR> private void Open()<BR> {<BR> // 打开数据库连接<BR> if (MyConn == null)<BR> {<BR> MyConn = new OleDbConnection(ConfigurationManager.AppSettings["oledbConnectionString"].ToString());<BR> }<BR> if (MyConn.State == ConnectionState.Closed)<BR> {<BR> try<BR> {<BR> ///打开数据库连接<BR>