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

至少一個參數沒有被指定值。

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

異常詳細信息: System.Data.OleDb.OleDbException: 至少一個參數沒有被指定值。

源錯誤:

行 671:            sql = "select * from content where id=" + Request.QueryString["id"];
行 672:            cmd.CommandText = sql;
行 673:            OleDbDataReader odrx = cmd.ExecuteReader();
行 674:            if (odrx.Read())
行 675:            {

源文件: d:\wwwroot\ynzyfscom\wwwroot\Default.aspx.cs    行: 673

堆棧跟蹤:

[OleDbException (0x80040e10): 至少一個參數沒有被指定值。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1229556
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +208
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +162
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +110
   System.Data.OleDb.OleDbCommand.ExecuteReader() +11
   _Default.modnewsdetail(String xx, String pindao) in d:\wwwroot\ynzyfscom\wwwroot\Default.aspx.cs:673
   ASP.newsdetail_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\wwwroot\ynzyfscom\wwwroot\newsdetail.aspx:6
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


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