“/”應用程序中的服務器錯誤。

SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY sort_id asc,add_time desc) as row_number, * FROM view_channel_catalog where datediff(d,add_time,getdate())>=0 and status=0) AS T WHERE row_number between 1 and 34在從服務器接收結果時發生傳輸級錯誤。 (provider: TCP Provider, error: 0 - 指定的網絡名不再可用。)

說明: 執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。

異常詳細信息: System.Exception: SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY sort_id asc,add_time desc) as row_number, * FROM view_channel_catalog where datediff(d,add_time,getdate())>=0 and status=0) AS T WHERE row_number between 1 and 34在從服務器接收結果時發生傳輸級錯誤。 (provider: TCP Provider, error: 0 - 指定的網絡名不再可用。)

源錯誤:

隻有在調試模式下進行編譯時,生成此未經處理的異常的源代碼才會顯示出來。若要啟用此功能,請執行以下步驟之一,然後請求 URL:

1. 在產生錯誤的文件的頂部添加一條“Debug=true”指令。例如:

  <%@ Page Language="C#" Debug="true" %>

或:

2. 將以下的節添加到應用程序的配置文件中:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

請注意,第二個步驟將使給定應用程序中的所有文件在調試模式下進行編譯;第一個步驟僅使該特定文件在調試模式下進行編譯。

重要事項: 以調試模式運行應用程序一定會產生內存/性能係統開銷。在部署到生產方案之前,應確保應用程序調試已禁用。

堆棧跟蹤:

[Exception: SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY sort_id asc,add_time desc) as row_number, * FROM view_channel_catalog where datediff(d,add_time,getdate())>=0 and status=0) AS T WHERE row_number between 1 and 34在從服務器接收結果時發生傳輸級錯誤。 (provider: TCP Provider, error: 0 - 指定的網絡名不再可用。)]
   DTcms.DBUtility.DbHelperSQL.Query(String SQLString) +189
   DTcms.DAL.article.GetList(String channel_name, Int32 category_id, Int32 pageSize, Int32 pageIndex, String strWhere, String filedOrder, Int32& recordCount) +354
   DTcms.BLL.article.GetList(String channel_name, Int32 category_id, Int32 pageIndex, String strWhere, String filedOrder, Int32& recordCount, Int32& pageSize) +77
   DTcms.Web.UI.BasePage.get_article_list(String channel_name, Int32 category_id, Int32 page_index, String strwhere, Int32& totalcount, String& pagelist, String _key, Object[] _params) +110
   ASP.aspx_main_catalog_list_aspx.OnInit(EventArgs e) +3755
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2623.0