Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

.net

vsto

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?

like image 736
Urvashi Avatar asked Feb 04 '13 12:02

Urvashi


2 Answers

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.

like image 65
PabloInNZ Avatar answered Sep 21 '22 13:09

PabloInNZ


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

like image 20
Urvashi Avatar answered Sep 21 '22 13:09

Urvashi