1

Sitecore 6.5 でプレースホルダーをレイアウトに追加しようとすると、次のエラー メッセージが表示されます:

"空の文字列は使用できません。<br>パラメータ名: xml"

何が問題なのですか?次のスタック トレースがログに表示されます。

1124 10:20:56 ERROR 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.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.sitecore_shell_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\59ed33b7\d6112557\App_Web_edgk4py3.1.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   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.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Sitecore.Reflection.ReflectionUtil.CallMethod(Type type, Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters)
   at Sitecore.Reflection.ReflectionUtil.CallMethod(Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters)
   at Sitecore.Web.UI.HtmlControls.Component.HandleMessage(Message message)
   at Sitecore.Shell.Framework.Commands.ClientEventCommand.SendEventMessage()
   at Sitecore.Shell.Framework.Commands.ClientEventCommand.Execute(CommandContext context)
   at Sitecore.Web.UI.Sheer.ClientPage.RaiseEvent()
   at Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Nested Exception

Exception: System.ArgumentException
Message: Empty strings are not allowed.
Parameter name: xml
Source: Sitecore.Kernel
   at Sitecore.Diagnostics.Assert.ArgumentNotNullOrEmpty(String argument, String argumentName)
   at Sitecore.Layouts.LayoutDefinition.Parse(String xml)
   at Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm.OnOK(Object sender, EventArgs args)
4

2 に答える 2

1

私はこの問題に遭遇し、問題の原因が設定であり、web.config で空白であることを発見しましInvalidItemNameCharsItemNameValidation

以下に示すデフォルト値に値を復元するとすぐに、無効な文字を含むパッケージをインポートするために値を削除しました。例外は発生しなくなりました。

<setting name="InvalidItemNameChars" value="\/:?&quot;&lt;>|[]" />

<setting name="ItemNameValidation" value="^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$" />
于 2015-03-25T19:38:36.590 に答える
0

ほとんどの場合、これは言語設定に関係しています。たとえば、ユーザーが (デフォルトのコンテンツ言語を介して) ある言語でアイテムを編集するように設定されている場合、編集中の現在のアイテムには言語固有のバージョンがありません。

たとえば、あなたは「en」に存在するアイテムにいます-そしてあなたがログインしているユーザー; デフォルトは「da-DK」 - そして、現在のアイテムには「da-DK」のバージョンがありません。

長い間このバグを見ていませんでしたが、修正されたと思っていました。

この問題ではないかもしれませんが、この問題に関する限られた情報から判断するのは非常に困難です。

ユーザー設定を見てください。また、サイト定義で「ContentLanguage」属性が定義されている場合は、期待どおりではない可能性があります。

于 2013-09-06T15:28:25.847 に答える