事件类型: 警告
事件来源: ASP.NET 2.0.50727.0
事件种类: Web Event 
事件 ID: 1309
日期: 2009-7-21
事件: 11:51:16
用户: N/A
计算机: SERVER4
描述:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 2009-7-21 11:51:16 
Event time (UTC): 2009-7-21 3:51:16 
Event ID: ef7b18c4288d41f68394171dd782c968 
Event sequence: 17965 
Event occurrence: 2 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT-1-128926151995000000 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: D:\***\ 
    Machine name: SERVER4 
 
Process information: 
    Process ID: 2984 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: NullReferenceException 
    Exception message: Object reference not set to an instance of an object. 
 
Request information: 
    Request URL: http://www.***.com/Default.aspx 
    Request path: /Default.aspx 
    User host address: 116.24.109.223 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 34 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at MySql.Data.MySqlClient.MySqlPool.CheckoutConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
   at WebApp.Data.ArticleclassTableAdapters.cms_articleclassTableAdapter.FillByArticleClassID(cms_articleclassDataTable dataTable, Int32 ArticleClassID) in E:\swyy\WebApp\Data\Articleclass.Designer.cs:line 1417
   at WebApp.wuc_Default_ArticleBysingle.getdatabind() in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 64
   at WebApp.wuc_Default_ArticleBysingle.Page_Load(Object sender, EventArgs e) in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 35
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details: 有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

解决方案 »

  1.   

    at WebApp.Data.ArticleclassTableAdapters.cms_articleclassTableAdapter.FillByArticleClassID(cms_articleclassDataTable dataTable, Int32 ArticleClassID) in E:\swyy\WebApp\Data\Articleclass.Designer.cs:line 1417 
      at WebApp.wuc_Default_ArticleBysingle.getdatabind() in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 64 
      at WebApp.wuc_Default_ArticleBysingle.Page_Load(Object sender, EventArgs e) in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 35 检查一下这几行代码吧。感觉你没有使用开发环境发布站点啊。
      

  2.   

    Articleclass.Designer.cs :行1417  检查下~~
      

  3.   

    wuc_Default_ArticleBysingle.ascx.cs :行64 
      

  4.   

    最主要的问题,我的网站放在d盘的..怎么报错报道E盘去了,E盘也没那个文件啊
      

  5.   

    貌似Open時報的錯
    連接池滿了~
      

  6.   

    看你做开发的电脑的E盘...
    那些debug信息显示的是你开发机的源码的位置的
      

  7.   

    感覺應該是數據庫連接沒有釋放
    可以使用
    using (連接對象)
    {
    }的方式,保證資源可以被釋放
      

  8.   

    at WebApp.Data.ArticleclassTableAdapters.cms_articleclassTableAdapter.FillByArticleClassID(cms_articleclassDataTable dataTable, Int32 ArticleClassID) in E:\swyy\WebApp\Data\Articleclass.Designer.cs:line 1417 
      at WebApp.wuc_Default_ArticleBysingle.getdatabind() in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 64 
      at WebApp.wuc_Default_ArticleBysingle.Page_Load(Object sender, EventArgs e) in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 35 
    看看吧、
    最好单步调试。
      

  9.   

    at WebApp.Data.ArticleclassTableAdapters.cms_articleclassTableAdapter.FillByArticleClassID(cms_articleclassDataTable dataTable, Int32 ArticleClassID) in E:\swyy\WebApp\Data\Articleclass.Designer.cs:line 1417 
      at WebApp.wuc_Default_ArticleBysingle.getdatabind() in E:\swyy\WebApp\wuc_Default_ArticleBysingle.ascx.cs:line 64 调试下.
      

  10.   

    未将对象实例化,有东西返回值为null,你检查下你的代码
      

  11.   

    貌似你有数据集返回为null,在getdatabind方法中加判段:
    如: if(dt!=null){}  或者 if(ds!=null){}  dt 或 ds是你的数据集