[英]'<', hexadecimal value 0x3C, is an invalid attribute character
I have Developed VSTO Addin.我已经开发了 VSTO 插件。 Now When I am trying to Install VSTO Addin in my machine I am getting an Exception as following.现在,当我尝试在我的机器上安装 VSTO Addin 时,出现如下异常。
System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. System.Xml.XmlException: '<',十六进制值 0x3C,是无效的属性字符。 Line 21, position 39.第 21 行,位置 39。
I have checked in .vsto file at line number 21. and The line is as following.我已经在第 21 行签入了 .vsto 文件。该行如下。
<publisherIdentity name="CN="<itranscript.net>""/>
What is wrong in above line.上面一行有什么问题。 Can anyone help me?谁能帮我?
I found the solution.我找到了解决方案。 <publisherIdentity name="CN="<itranscript.net>""/>
is not correct. <publisherIdentity name="CN="<itranscript.net>""/>
不正确。 Given the right value in name solved my issue...鉴于名称中的正确值解决了我的问题......
我正在寻找的答案是将<
替换为<
I know this is old, but it was the first thing that came up on my search here.我知道这是旧的,但这是我在这里搜索的第一件事。 I had a similar issue , but it was due to a malformed element in a separate app_settings.config file, so it threw me, as the error was referring to the Web.Config.我有一个类似的问题,但这是由于单独的 app_settings.config 文件中的元素格式错误,所以它抛出了我,因为错误是指 Web.Config。 So in the Web.config, there was something like this所以在 Web.config 中,有这样的东西
<appSettings file="DebugPrimaryPaul_AppSettings.config">
and in the _AppSettings.config was something like this在 _AppSettings.config 中是这样的
<add key ="RegionalCodes" value="xxxxxxxxxxxxxxxxxx />
Note the missing " after value, which results in a malformed line. The error was referring to a line in the Web.config much lower down. Putting the " in fixed it.请注意缺少“后值,这会导致格式错误的行。错误是指 Web.config 中的一行低得多。将“放入修复它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.