Publishing.TimeBeforeStatusExpiresの設定値によりパブリッシングが中断されることがある


解説

多数のアイテムがパブリッシュされる場合、Publishing.TimeBeforeStatusExpires設定の値が低いと、パブリッシュのプロセスが予期せず中断される可能性があります。

その場合、パブリッシュ ダイアログに以下のようなメッセージが表示されます。

The publishing process was unexpectedly interrupted.

ログ ファイルには、以下のようなエラー スタック トレースが出力されます。

Application error.
Exception: System.Web.HttpUnhandledException
Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source: System.Web
   at System.Web.UI.Page.HandleError(Exception e)
   ...
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Nested Exception
 
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   ...
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
Nested Exception
 
Exception: System.Exception
Message: The publishing process was unexpectedly interrupted.
Source: Sitecore.Client
   at Sitecore.Shell.Applications.Dialogs.Publish.PublishForm.CheckStatus()

解決策

web.configファイルのPublishing.TimeBeforeStatusExpires設定の値を、例えば10:00:00 のように増やしてください。
:正確な設定値は、アイテム数、サーバーのパフォーマンスなど、多くの要因によって異なるため、すべてのケースに適用できる推奨値はありません。