1

无论出于何种原因,当我们开始在我们的一台服务器上收到此异常消息时,都是 Window server 2008 R2。几周前该网站还不错,我们不知道发生了什么变化。应用程序池已启用 32 位应用程序设置为 true。我们可以将相同的源代码部署到另一台服务器,它可以工作,但反之则不行。

有人有想法么?

说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.BadImageFormatException:尝试加载格式不正确的程序。(来自 HRESULT 的异常:0x8007000B)

BadImageFormatException:试图加载格式不正确的程序。(HRESULT 异常:0x8007000B)] System.Data.Entity.Internal.InterceptableDbCommand.ExecuteNonQuery() +0 System.Data.Entity.Core.Mapping.Update.Internal.DynamicUpdateCommand.Execute(字典2 identifierValues, List1 generatedValues)+645 System.Data .Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update() +140

[UpdateException: An error occurred while updating the entries. See the inner exception for details.]
   System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update() +303
   System.Data.Entity.Core.EntityClient.Internal.EntityAdapter.<Update>b__2(UpdateTranslator ut) +9
   System.Data.Entity.Core.EntityClient.Internal.EntityAdapter.Update(T noChangesResult, Func`2 updateFunction, Boolean throwOnClosedConnection) +124
   System.Data.Entity.Core.EntityClient.Internal.EntityAdapter.Update(Boolean throwOnClosedConnection) +89
   System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStore>b__b() +18
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) +314
   System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions options, IDbExecutionStrategy executionStrategy) +161
   System.Data.Entity.Core.Objects.<>c__DisplayClass9.<SaveChanges>b__6() +21
   System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +153
   System.Data.Entity.Core.Objects.ObjectContext.SaveChanges(SaveOptions options) +226
   System.Data.Entity.Internal.InternalContext.SaveChanges() +141

[DbUpdateException: An error occurred while updating the entries. See the inner exception for details.]
   System.Data.Entity.Internal.InternalContext.SaveChanges() +209
   System.Data.Entity.Internal.LazyInternalContext.SaveChanges() +27
   System.Data.Entity.DbContext.SaveChanges() +20
   SecureEDI.PMS.DataAccess.CrudEFRepository`1.Save() +35
   SecureEDI.PMS.DataAccess.CrudEFRepository`1.Create(T entity) +183
   SecureEDI.PMS.BusinessLogic.CrudEFManager`1.Create(T entity) +61
   SecureEDI.PMS.Core.Exceptions.ExceptionHandler.LogException(Exception e) +1724
   SecureEDI.PMS.Core.Exceptions.ExceptionHandler.HandleException(Exception exception) +1434
   SecureEDI.PMS.Core.Exceptions.ExceptionHandler..ctor(Exception exception) +24
   SecureEDI.PMS.Web.Controllers.BaseController.OnException(ExceptionContext filterContext) +582
   System.Web.Mvc.Controller.System.Web.Mvc.IExceptionFilter.OnException(ExceptionContext filterContext) +10
   System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) +115
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +106
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +47
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +18
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +29
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +46
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +30
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +28
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +820
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +148
4

0 回答 0