发布到 生产环境 服务器后,我们会在重新启动应用程序后不时收到此错误 . 要修复它,我们的管理员正在重新启动应用程序并再次运行 . 我们不知道发生了什么 . 我能检查什么?

编辑:在同一个应用程序中,我们有asmx webservices,需要标识impersonate = true,因此在web.config中设置 .

编辑2:我需要纠正我说的话 . 应用程序池回收后,我们收到此错误 . 但不总是 .

Error in : http://SERVER_NAME/APP_NAME/OurService.svc LastError: System.IO.FileLoadException: Could not load file or assembly 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) 
File name: 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
---> System.Runtime.InteropServices.COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))    
at System.ServiceModel.Activation.HostedImpersonationContext..ctor()    
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult..ctor(HttpApplication context, Boolean flowContext, AsyncCallback callback, Object state)    
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext)    
at System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e)    
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Message: Could not load file or assembly 'System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) Source: System.ServiceModel