日期:2014-05-18  浏览次数:20878 次

大侠帮帮小弟吧.System.Data.OleDb.OleDbException: 未指定的错误.在线等
Server   Error   in   '/ '   Application.
--------------------------------------------

未指定的错误  
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.  

Exception   Details:   System.Data.OleDb.OleDbException:   未指定的错误

Source   Error:  

An   unhandled   exception   was   generated   during   the   execution   of   the   current   web   request.   Information   regarding   the   origin   and   location   of   the   exception   can   be   identified   using   the   exception   stack   trace   below.    

Stack   Trace:  


[OleDbException   (0x80004005):   未指定的错误]
      RuiYi.DbHelper.DBHELPER.ExectueDataRow(String   strsql)   in   D:\ruri\DbHelper\DBHELPER.cs:127
      RuiYi.SystemDLL.PubList.Get_ID_PubList(Int32   PubListID)   in   D:\ruri\SystemDLL\PubList.cs:60
      Contrls_PubList.DB()   in   d:\ruri\web\Contrls\PubList.ascx.cs:26
      Contrls_PubList.Page_Load(Object   sender,   EventArgs   e)   in   d:\ruri\web\Contrls\PubList.ascx.cs:18
      System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr   fp,   Object   o,   Object   t,   EventArgs   e)   +15
      System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object   sender,   EventArgs   e)   +34
      System.Web.UI.Control.OnLoad(EventArgs   e)   +99
      System.Web.UI.Control.LoadRecursive()   +47
      System.Web.UI.Control.LoadRecursive()   +131
      System.Web.UI.Control.LoadRecursive()   +131
      System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint,   Boolean   includeStagesAfterAsyncPoint)   +1061

 


--------代码下.有关闭数据库连接了还是会出现这种错误-----------
  public   void   Close()
                {
                        if   (conn   !=   null)
                        {
                                conn.Close();
                                conn.Dispose();
                        }
                }
  public   DataRow   ExectueDataRow(string   strsql)
          &nbs