[解决发红包]System.Web.HttpUnhandledException异常

xj331211 2018-02-09 09:16:42

异常信息:引发类型为“System.Web.HttpUnhandledException”的异常。
Source:System.Web
StackTrace:
在 System.Web.UI.Page.HandleError(Exception e)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.admin_enterprise_ks_csenterpriserz_aspx.ProcessRequest(HttpContext context) 位置 c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cf2cd893\b1a23e30\App_Web_ghczh0lp.1.cs:行号 0
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

InnerException:
System.ArgumentException: 列“EpId”不属于表 Table。
在 System.Data.DataRow.GetDataColumn(String columnName)
在 System.Data.DataRow.get_Item(String columnName)
在 Kesion.NET.WebSite.Course.Admin_EnterPrise_KS_CsEnterPriseRZ.tlEhSEGPFA(String )
在 Kesion.NET.WebSite.Course.Admin_EnterPrise_KS_CsEnterPriseRZ.List_RowCommand(Object sender, GridViewCommandEventArgs e)
在 System.Web.UI.WebControls.GridView.OnRowCommand(GridViewCommandEventArgs e)
在 System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
在 System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e)
在 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
在 System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e)
在 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
在 System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
在 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)





异常信息:引发类型为“System.Web.HttpUnhandledException”的异常。
Source:System.Web
StackTrace:
在 System.Web.UI.Page.HandleError(Exception e)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.index_aspx.ProcessRequest(HttpContext context) 位置 c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cf2cd893\b1a23e30\App_Web_ehuplcbn.0.cs:行号 0
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

InnerException:
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Data.SqlClient.SqlException: 对象名 'KS_Askt' 无效。
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteScalar()
在 Kesion.DataBase.DBHelper.GetPageSql(String SqlAllFields, String SqlTablesAndWhere, String IndexField, String OrderFields, Int32 PageIndex, Int32 PageSize, Int32& RecordCount, Int32& PageCount)
在 Kesion.SqlDAL.DataFactory.GetPage(String SqlAllFields, String SqlTablesAndWhere, String IndexField, String OrderFields, Int32 PageIndex, Int32 PageSize, Int32& RecordCount, Int32& PageCount)
在 Kesion.BLL.DataFactory.GetPage(String SqlAllFields, String SqlTablesAndWhere, String IndexField, String OrderFields, Int32 PageIndex, Int32 PageSize, Int32& RecordCount, Int32& PageCount)
在 Kesion.HtmlTags.ReplaceAskQuestion.ReplaceContentAllLabel(String& F_C, DataRow dr)
在 Kesion.HtmlTags.ReplaceAskQuestion.run(Boolean isMobileDevice)
在 Kesion.Controllers.askController.View(Boolean isMobileDevice)
在 Kesion.Controllers.askController.Run(Boolean isMobileDevice)
--- 内部异常堆栈跟踪的结尾 ---
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 Kesion.NET.WebSite.Index.Page_Load(Object sender, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)




...全文
2310 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
秋的红果实 2018-02-09
  • 打赏
  • 举报
回复
引用 6 楼 xj331211 的回复:
引用 4 楼 From_TaiWan 的回复:
估计是没有这个表名,或者什么的,最好有源码
您的联系方式是什么,您有时间的话您可以远程下吗,解决发红包
源码不方便发这里,可以发我邮箱(私信给你了),我试一下
duangufei 2018-02-09
  • 打赏
  • 举报
回复
Table表中加一个Epid列
xj331211 2018-02-09
  • 打赏
  • 举报
回复
引用 4 楼 From_TaiWan 的回复:
估计是没有这个表名,或者什么的,最好有源码
您的联系方式是什么,您有时间的话您可以远程下吗,解决发红包
xj331211 2018-02-09
  • 打赏
  • 举报
回复
引用 1 楼 starfd 的回复:
列“EpId”不属于表 Table 你的sql里面指定的字段不属于对应table
那该怎么解决呢,我百度了很多类似的问题都没解决。我完全是个不懂SQL的小白,麻烦您给出详细解决步骤,解决了我发红包给您。
秋的红果实 2018-02-09
  • 打赏
  • 举报
回复
估计是没有这个表名,或者什么的,最好有源码
秋的红果实 2018-02-09
  • 打赏
  • 举报
回复
哦,刚看到邀请信息 从现有信息看,除了楼上各位说的,还有“System.Data.SqlClient.SqlException: 对象名 'KS_Askt' 无效。” lz,贴出源码
正怒月神 版主 2018-02-09
  • 打赏
  • 举报
回复
1#正解。表里没有EqId这个字段
  • 打赏
  • 举报
回复
列“EpId”不属于表 Table 你的sql里面指定的字段不属于对应table

62,243

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧