“/”应用程序中的服务器错误。

至少一个参数没有被指定值。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: 至少一个参数没有被指定值。

源错误:


行 37:         string cont_l = "select Tcontent from ziliao_xiazai where num=" + numb + "";
行 38:         System.Data.OleDb.OleDbCommand cont_l_c = new OleDbCommand(cont_l, myConnection);
行 39:         OleDbDataReader cont_r = cont_l_c.ExecuteReader();
行 40:         cont_r.Read();
行 41:         content_l.InnerHtml = cont_r[0].ToString();

源文件: c:\ftp\shijiudawangzhan\pages\download_m.aspx.cs    行: 39

堆栈跟踪:


[OleDbException (0x80040e10): 至少一个参数没有被指定值。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +44
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +237
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +209
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +163
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +106
   System.Data.OleDb.OleDbCommand.ExecuteReader() +6
   pages_download_m.Page_Load(Object sender, EventArgs e) in c:\ftp\shijiudawangzhan\pages\download_m.aspx.cs:39
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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