服务于应用程序池 'App pool' 的进程与 Windows 进程激活服务发生致命通信错误

A process serving application pool 'App pool' suffered a fatal communication error with the Windows Process Activation Service

我有 asp.net Web 表单应用程序。我将程序部署到 IIS 服务器并且程序运行良好,但所有用户的 InProc 会话经常同时终止。 我知道应用程序池通常是回收的。我安装了 DebugDiagx64 程序并添加了此应用程序池的日志。结果是

Some exception details were omitted due to the following reasons
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'NOT_FOUND'
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'System.Threading.ThreadAbortException'
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'System.Net.HttpWebRequest'
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'System.ServiceModel.FaultReason'
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'System.Threading.ExecutionContext'
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'System.NullReferenceException'
        The maximum number of total stacks (MAX_CLR_EXCEPTION_STACKS_TOTAL = 100) for all CLR exception types have been collected)
        The maximum number of stacks (MAX_CLR_EXCEPTION_STACKS_PER_EXCEPTION_TYPE = 10) for this CLR exception type have been collected: 'System.Security.Cryptography.CryptographicException'

如何解决这个问题?

我发现了问题。我正在使用 UDT 类型和 Odac 版本有时会抛出异常并且应用程序池被回收。我不使用udt类型,问题解决了。