&引用;不允许使用空字符串";添加Sitecore占位符时出错

&引用;不允许使用空字符串";添加Sitecore占位符时出错,sitecore,Sitecore,在Sitecore 6.5中尝试向布局添加占位符时,我收到以下错误消息: “不允许使用空字符串。参数名称:xml” 知道有什么问题吗?日志中将显示以下堆栈跟踪: 1124 10:20:56 ERROR Application error. Exception: System.Web.HttpUnhandledException Message: Exception of type 'System.Web.HttpUnhandledException' was thrown. Source: Sy

在Sitecore 6.5中尝试向布局添加占位符时,我收到以下错误消息:

“不允许使用空字符串。
参数名称: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)

通常,这与您的语言设置有关。比如说,;如果用户(通过默认内容语言)设置为以某种语言编辑项目,则您正在编辑的当前项目没有特定于语言的版本

比如说,;您所处的项目存在于“en”中,并且您作为用户登录;默认为“da DK”-当前项目在“da DK”中没有版本

虽然我已经很久没有看到这个bug了,但我认为它已经修复了

可能根本不是这个问题,但从你掌握的关于这个问题的有限信息来看,真的很难判断


看看你的用户设置;此外,如果站点定义中定义的“ContentLanguage”属性可能与您的期望不符。

最常见的情况是,这与您的语言设置有关。比如说,;如果用户(通过默认内容语言)设置为以某种语言编辑项目,则您正在编辑的当前项目没有特定于语言的版本

比如说,;您所处的项目存在于“en”中,并且您作为用户登录;默认为“da DK”-当前项目在“da DK”中没有版本

虽然我已经很久没有看到这个bug了,但我认为它已经修复了

可能根本不是这个问题,但从你掌握的关于这个问题的有限信息来看,真的很难判断


看看你的用户设置;此外,如果在您的网站定义中定义了任何可能与您预期不符的“ContentLanguage”属性。

我遇到了此问题,并发现问题的根源是web.config中的设置
InvalidItemNameChars
ItemNameValidation
为空

我已经删除了这些值以导入包含无效字符的包。一旦我将这些值恢复为默认值(如下所示),异常就停止发生

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

<setting name="ItemNameValidation" value="^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$" />
|[]”/>

我遇到了这个问题,发现问题的根源是web.config中的设置
InvalidItemNameChars
ItemNameValidation
为空

我已经删除了这些值以导入包含无效字符的包。一旦我将这些值恢复为默认值(如下所示),异常就停止发生

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

<setting name="ItemNameValidation" value="^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$" />
|[]”/>

我不在这个网站上,但他们有时会在我工作的地方使用它。这个网站是从一个使用CIG的网站克隆而来的。你还有其他信息吗?堆栈跟踪将是helpful@MarasMusielak:不,这是对话框中错误消息的全部内容。没有堆栈跟踪。@Maras Musielak:我在日志中找到了堆栈跟踪,并将其添加到上面。谢谢我不在这个网站上,但他们有时会在我工作的地方使用它。这个网站是从一个使用CIG的网站克隆而来的。你还有其他信息吗?堆栈跟踪将是helpful@MarasMusielak:不,这是对话框中错误消息的全部内容。没有堆栈跟踪。@Maras Musielak:我在日志中找到了堆栈跟踪,并将其添加到上面。谢谢话虽如此,;引发异常的代码与设备设置有关。您是否对Sitecore附带的默认设备进行过任何修改;引发异常的代码与设备设置有关。您是否对Sitecore附带的默认设备进行过任何修改?