【问题标题】:Exception type: ThreadAbortException异常类型:ThreadAbortException
【发布时间】:2013-01-30 07:45:13
【问题描述】:

我们有 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)

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

提前致谢。

【问题讨论】:

    标签: wcf iis


    【解决方案1】:

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

    【讨论】:

    • 我们尝试了链接msdn.microsoft.com/en-us/library/ms972959.aspx中提到的IIS配置,但这没有帮助。我们的服务行为 [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple)]
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-17
    • 2012-02-06
    • 2019-09-08
    • 1970-01-01
    • 1970-01-01
    • 2018-10-29
    • 1970-01-01
    相关资源
    最近更新 更多