C# 对象名称无效:数据库对象不再存在

C# 对象名称无效:数据库对象不再存在,c#,entity-framework,asp.net-mvc-4,C#,Entity Framework,Asp.net Mvc 4,我在做3个项目 -MVC4网站 -HTTP处理程序 -实体框架数据层 基本上,你必须在网站上填写一个表单,将表单转换成XML,发送给返回XML的处理程序,然后网站处理响应。这两个应用程序都使用数据层库来更新数据库 我一直在使用本地和远程运行的处理程序在运行IIS8的Web服务器上进行测试。我在Web服务器上安装的第一个版本运行正常。然后我不得不更新数据层库,现在我得到了无效的对象名错误 问题是,对象anme是一个在我的数据层项目中不再存在的表名,这听起来真的很奇怪 我可能检查了所有我能检查的东西

我在做3个项目 -MVC4网站 -HTTP处理程序 -实体框架数据层

基本上,你必须在网站上填写一个表单,将表单转换成XML,发送给返回XML的处理程序,然后网站处理响应。这两个应用程序都使用数据层库来更新数据库

我一直在使用本地和远程运行的处理程序在运行IIS8的Web服务器上进行测试。我在Web服务器上安装的第一个版本运行正常。然后我不得不更新数据层库,现在我得到了无效的对象名错误

问题是,对象anme是一个在我的数据层项目中不再存在的表名,这听起来真的很奇怪

我可能检查了所有我能检查的东西 -连接字符串正常 -数据库权限正常 -处理程序的DLL由dae决定 -库的dll是最新的

我甚至停止并重新启动了我的处理程序所在的应用程序池。即使现在我在处理程序运行localy的情况下再次尝试了该方法,但效果很好,只有在远程服务器上调用该处理程序时,并且仅在我更改了数据层库之后,才会发生错误

我认为唯一可能的原因是,在某个地方缓存了一些我不知道的东西

这是堆栈跟踪,尽管我在其中没有找到任何有用的信息

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)