简体   繁体   English

'<',十六进制值 0x3C,是无效的属性字符

[英]'<', 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=&quot;&lt;itranscript.net&gt;&quot;"/>

What is wrong in above line.上面一行有什么问题。 Can anyone help me?谁能帮我?

I found the solution.我找到了解决方案。 <publisherIdentity name="CN=&quot;&lt;itranscript.net&gt;&quot;"/> is not correct. <publisherIdentity name="CN=&quot;&lt;itranscript.net&gt;&quot;"/>不正确。 Given the right value in name solved my issue...鉴于名称中的正确值解决了我的问题......

我正在寻找的答案是将<替换为&lt;

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.

相关问题 名称不能以 '&lt;' 字符十六进制值 0x3c 开头 - Name cannot begin with the '<' character hexadecimal value 0x3c XDocument错误名称不能以&#39;&lt;&#39;字符开头,十六进制值0x3C - XDocument Error Name cannot begin with the '<' character, hexadecimal value 0x3C WCF服务参考 - 获取“XmlException:名称不能以&#39;&lt;&#39;字符开头,十六进制值0x3C”在客户端 - WCF Service Reference - Getting “XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C” on Client Side C# 十六进制值 0x12,是一个无效字符 - C# hexadecimal value 0x12, is an invalid character 错误:十六进制值 0x00 是无效字符 c# - Error: hexadecimal value 0x00 is an invalid character c# 十六进制值 0x07,是一个无效字符 - hexadecimal value 0x07, is an invalid character 十六进制值0x1E,是无效字符 - hexadecimal value 0x1E, is an invalid character 导出到excel数据时出错:&#39;&#39;,十六进制值0x07,使用C#是无效字符 - error while exporting to excel data : ' ', hexadecimal value 0x07, is an invalid character using c# 从Word粘贴+创建XML文档 - &gt;十六进制值0x0C,是无效字符(.Net) - Paste from Word + Create XML document -> hexadecimal value 0x0C, is an invalid character (.Net) “&#39;\\ f&#39;,十六进制值0x0C,是无效字符” —无法清除 - “'\f', hexadecimal value 0x0C, is an invalid character” — Can't clean it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM