'/' 應用程式中發生伺服器錯誤。

在應用程式組態中找不到連接名稱 'mystoreConnectionStringyoutube',或連接字串為空白。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.InvalidOperationException: 在應用程式組態中找不到連接名稱 'mystoreConnectionStringyoutube',或連接字串為空白。

原始程式錯誤:


行 370:                       <p align="center">
行 371:                           &nbsp;<a href="javascript:history.back(1)" style="font-style: normal; font-variant: normal; font-weight: normal; line-height: 12pt; font-size: 9pt; font-family: arial; color: FF0000 ">上一頁</A>&nbsp;
行 372:                           <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mystoreConnectionStringyoutube %>"
行 373:                               ProviderName="<%$ ConnectionStrings:mystoreConnectionStringyoutube.ProviderName %>"
行 374:                               SelectCommand="SELECT * FROM [Product] WHERE ([productid] = ?)">

原始程式檔: E:\6000go\sanhetang\productyoutube.aspx    行: 372

堆疊追蹤:


[InvalidOperationException: 在應用程式組態中找不到連接名稱 'mystoreConnectionStringyoutube',或連接字串為空白。]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1537357
   ASP.productyoutube_aspx.__BuildControlSqlDataSource1() in E:\6000go\sanhetang\productyoutube.aspx:372
   ASP.productyoutube_aspx.__BuildControlform1() in E:\6000go\sanhetang\productyoutube.aspx:83
   ASP.productyoutube_aspx.__BuildControlTree(productyoutube_aspx __ctrl) in E:\6000go\sanhetang\productyoutube.aspx:1
   ASP.productyoutube_aspx.FrameworkInitialize() in E:\6000go\sanhetang\productyoutube.aspx.vb:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +22
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.productyoutube_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.4087.0