WCF服务经常停机,需要重置app pool才能启动

时间:2014-07-24 15:04:23

标签: c# wcf iis

我创建了一个在Windows应用程序中使用的WCF服务。此服务在执行应用程序时工作正常。但是如果我没有执行应用程序一段时间(大约20分钟或更长时间),然后在我执行应用程序之后,当我在浏览器上点击服务URL时服务停止并显示以下错误。应用程序池重置服务启动但我不想经常重置应用程序池。如果有人帮我解决这个问题,那将会很有帮助。

Server Error in '/ConnectionService' Application.

Unhandled Execution Error 
  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.IO.FileLoadException: 

来源错误:

 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.  

堆栈追踪:

[FileLoadException]
   System.ServiceModel.Activation.ServiceHttpModule.BeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +0
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +12685826
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

版本信息:

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446 

0 个答案:

没有答案