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

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

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

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

原始程式錯誤:


行 2:  
行 3:  <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
行 4:      <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AllJPDataConnectionString %>" SelectCommand="SELECT [No],[Name], [ENName], [Country], [Pleace], [Address], [Phone], [Fax], [URL], [Email], [Owner], [Teacher], [CreatDay], [Day_Now], [Inter], [Trait], [Other] FROM [JPSchData] WHERE ([No] = @No)">
行 5:          <SelectParameters>
行 6:              <asp:QueryStringParameter Name="No" QueryStringField="No" Type="Int32" />

原始程式檔: C:\inetpub\mobile\jpteach\DetailSch.aspx    行: 4

堆疊追蹤:


[InvalidOperationException: 在應用程式組態中找不到連接名稱 'AllJPDataConnectionString',或連接字串為空白。]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +1909592
   ASP.jpteach_detailsch_aspx.__BuildControlSqlDataSource1() in C:\inetpub\mobile\jpteach\DetailSch.aspx:4
   ASP.jpteach_detailsch_aspx.__BuildControlContent1(Control __ctrl) in C:\inetpub\mobile\jpteach\DetailSch.aspx:3
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +103
   ASP.jpteach_masterpage_master.__BuildControlMainContent() in C:\inetpub\mobile\jpteach\MasterPage.master:31
   ASP.jpteach_masterpage_master.__BuildControlForm1() in C:\inetpub\mobile\jpteach\MasterPage.master:20
   ASP.jpteach_masterpage_master.__BuildControlTree(jpteach_masterpage_master __ctrl) in C:\inetpub\mobile\jpteach\MasterPage.master:1
   ASP.jpteach_masterpage_master.FrameworkInitialize() in C:\inetpub\mobile\jpteach\MasterPage.master.vb:912307
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1179
   System.Web.UI.Page.get_Master() +65
   System.Web.UI.Page.ApplyMasterPage() +18
   System.Web.UI.Page.PerformPreInit() +62
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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