网站本来好好的,前天下午就突然出现这个问题了,麻烦帮忙解答,谢谢了!!急
对象名  'box' 无效。Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: 对象名  'box' 无效。Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace: 
[Exception: 对象名  'box' 无效。]
   DAL.DbHelperSQL.Query(String SQLString) in E:\project\project\project\adWeb - 120405\adWeb - 120326\DAL\DbHelperSQL.cs:379
   com.BindNew(Int32 top, Dictionary`2 dicRpt) +518
   index.infoBind() +168
   index.Page_Load(Object sender, EventArgs e) +36
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

解决方案 »

  1.   

    检查下你查询的sql,是否有个box字段,而数据库中么有这个字段
      

  2.   

    box是一张表而且存在,大半年下来都还可以读取到的,某一天突然就无效了。这是怎么回事呢
      

  3.   

    那就看看你的数据库中box表是否删除,还有就是看看你的数据库的连接语句是否修改掉了,或者是删除掉了,要是一切都没有问题的话,重新生成一下,看看提示什么错误!
    如果继续报错的话,就是你的连接问题了