异常类型:ThreadAbortException

时间:2013-01-30 07:45:13

标签: wcf iis

我们有WCF服务,它在开发环境中工作。当我们在生产环境中部署时,我们面临以下错误:

Application information: 
    Application domain: /LM/w3svc/1/root/service-1-130039569765206325 
    Trust level: Full 
    Application Virtual Path: /service 
    Application Path: C:\inetpub\wwwroot\service\ 
    Machine name: DELTA 

Process information: 
    Process ID: 1320 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
    Exception type: ThreadAbortException 
    Exception message: Thread was being aborted.
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
   at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

请帮助我们找到解决上述问题的方法。

提前致谢。

1 个答案:

答案 0 :(得分:0)

看起来您的IIS无法为应用程序分配足够的内存,并且线程正在中止。它的IIS配置问题不是您的代码问题。尝试重新创建虚拟目录并创建一个条目。