情况如下
1. 系统平时都是正常运行, 包括出错的页面也是正常运行的, 提示缺少的字段也是正常读取的, 数据库里一直存在.
2. 出现问题以后系统登陆可以.
3. 提示的几个列名是后面新增的字段. 所以不知道是不是什么缓冲问题?
4. 只要重启下程序池就又恢复正常了. 所以不知道为啥会这样. 求教如何处理.日志查询了下:
Exception information:
Exception type: SqlException
Exception message: 列名 'sys_id' 无效。
在 System.Data.SqlClient.SqlConnection.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, Boolean isInternal, Boolean forDescribeParameterEncryption)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
在 System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
在 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
1. 系统平时都是正常运行, 包括出错的页面也是正常运行的, 提示缺少的字段也是正常读取的, 数据库里一直存在.
2. 出现问题以后系统登陆可以.
3. 提示的几个列名是后面新增的字段. 所以不知道是不是什么缓冲问题?
4. 只要重启下程序池就又恢复正常了. 所以不知道为啥会这样. 求教如何处理.日志查询了下:
Exception information:
Exception type: SqlException
Exception message: 列名 'sys_id' 无效。
在 System.Data.SqlClient.SqlConnection.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, Boolean isInternal, Boolean forDescribeParameterEncryption)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
在 System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
在 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
解决方案 »
- 在网页中添加flash播放器。
- firefox
- ASP.NET 1.1服务器运行慢的问题 菜鸟求救
- 我实在是要崩溃了,大家帮我分析一下,到底是什么原因
- ---如何在ASP.NET中打印票据 麻烦详细---
- 超级弱弱的问题,
- 网页样式的问题!!大家帮忙看看
- 【急】我现在有windows下面使用vs.net2003开发的asp.net程序,现在是否能很快移植到linux上?使用mono 1.0。
- ASP.NET中能否像PB的DataWindow一样冻结部分列;以及固定标题列
- 加分100
- 在GridView中的Template里面的Textbox后台如何控制这个Textbox的光标位置
- bootstrap 2个div并排 自动适应屏幕 怎么写呢
1 首先你使用的ef。
那么无论你怎么改动数据库。ef都要重新生成的。
看你下文说重启一下应用池就好了,那说明你ef应该重新生成过了。
2 既然ef重新生成过,那么网站肯定重新发不过了。
所以绝大部分的内部缓存问题,应该都已经被刷新了。所以应该不存在内部缓存问题。
3 那么结合你自己的说法,就非常可能是应用程序池的问题了。