简体   繁体   中英

'<', hexadecimal value 0x3C, is an invalid attribute character

I have Developed VSTO Addin. Now When I am trying to Install VSTO Addin in my machine I am getting an Exception as following.

System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 21, position 39.

I have checked in .vsto file at line number 21. and The line is as following.

<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. 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. So in the Web.config, there was something like this

<appSettings file="DebugPrimaryPaul_AppSettings.config">

and in the _AppSettings.config was something like this

<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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM