Sitecore Commerce powered by Microsoft Dynamics をインストールした後、Sitecore クライアントで Telerik エラーが発生する


解説

※註:この問題は、Commerce Serverを搭載したSitecore Commerceには当てはまりません。

Sitecore Commerce powered by Microsoft Dynamicsに必要なweb.configの変更をマージした後、Telerik コントロールを使用するSitecoreクライアント インターフェースにアクセスすると、以下に示すエラーが表示される場合があります。

例えば、アイテムに関連付けられたプロファイル カードを編集するために、ペルソナの1つの[編集]ボタンをクリックすると、次のエラーが発生する場合があります:

Server Error in '/' Application.'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager
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.InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager
Source Error: 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.
Stack Trace:  [InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager]    Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) +460    System.Web.UI.Control.PreRenderRecursiveInternal() +113    ...    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297

解決策

Sitecore Commerce powered by Microsoft Dynamicsのデフォルト構成の一部として、トランザクション サービス用の別のIISアプリケーションが、Sitecore XP インスタンスと同じIISサイトにインストールされます。 (例: C:\inetpub\CSSitecore\Website\TransactionService) 

トランザクション サービスの要件として<location>タグがweb.configに追加され、Telerikコントロールのレンダリングの問題を引き起こします。

この問題を解決するには、Sitecore XPに関連付けられたIIS サイトの外にトランザクション サービスを移動することを検討してください。

トランザクション サービスはSitecore XPに依存しないため、パフォーマンス上の理由から別のIIS サイトでホストすることをお勧めします。サービスを移動した後、\App_Config\DynamicsRetail.Connectors.Services.configファイルを更新して、新しいトランザクション サービス URL を反映する必要があります。