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

时间:2013-02-04 12:43:44

标签: c# .net vsto

我开发了VSTO Addin。现在,当我尝试在我的机器上安装VSTO Addin时,我得到的是例外情况。

System.Xml.XmlException:'<',十六进制值0x3C,是无效的属性字符。第21行,第39位。

我已在第21行检入.vsto文件。该行如下。

<publisherIdentity name="CN=&quot;&lt;itranscript.net&gt;&quot;"/>

以上行有什么问题。谁能帮我?

3 个答案:

答案 0 :(得分:1)

我找到了解决方案。 <publisherIdentity name="CN=&quot;&lt;itranscript.net&gt;&quot;"/>不正确。鉴于名称中的正确价值解决了我的问题......

答案 1 :(得分:0)

我知道这很老了,但这是我在这里搜索的第一件事。 我有一个类似的问题,但这是由于单独的app_settings.config文件中的元素格式错误,所以它使我感到震惊,因为错误是指Web.Config。 所以在Web.config中,有这样的东西

{
  "data": {
    "freightDriversByState": {
      "items": [
        {
          "name": "Andrés Montoya",
          "cities": [
            "GUADALAJARA"
          ],
          "state": "JALISCO",
          "country": "MX",
          "trucks": {
            "items": [
              {
                "brand": "chevrolet",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Ganadera",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "chevrolet",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 12,
                  "height": 12,
                  "depth": 12
                }
              },
              {
                "brand": "chevrolet",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 12,
                  "height": 12,
                  "depth": 12
                }
              },
              {
                "brand": "chevrolet",
                "model": "Semi",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "chevrolet",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "chevrolet",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Volcadora",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "hola",
                "model": "12",
                "yearModel": 12,
                "box": {
                  "type": "Plataforma",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "Ford",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 1,
                  "height": 2,
                  "depth": 1
                }
              },
              {
                "brand": "dasdas",
                "model": "12",
                "yearModel": 12231,
                "box": {
                  "type": "Grúa",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "Tesla",
                "model": "Semi",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 4,
                  "height": 4,
                  "depth": 2
                }
              }
            ]
          }
        },
        {
          "name": "Roberto mendez",
          "cities": [
            "GUADALAJARA"
          ],
          "state": "JALISCO",
          "country": "MX",
          "trucks": {
            "items": []
          }
        },
        {
          "name": "Fletes Jalisco Sa de Cv ",
          "cities": [
            "GUADALAJARA"
          ],
          "state": "JALISCO",
          "country": "MX",
          "trucks": {
            "items": [
              {
                "brand": "Ford",
                "model": "F-450",
                "yearModel": 2018,
                "box": {
                  "type": "Seca (cerrada)",
                  "width": 2.7,
                  "height": 2.5,
                  "depth": 4.5
                }
              },
              {
                "brand": "Hiundai",
                "model": "H100",
                "yearModel": 2009,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 2.3,
                  "height": 2,
                  "depth": 4
                }
              },
              {
                "brand": "Hiundai",
                "model": "H100",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 2.35,
                  "height": 2,
                  "depth": 3
                }
              },
              {
                "brand": "Ford",
                "model": "F-450",
                "yearModel": 2018,
                "box": {
                  "type": "Seca (cerrada)",
                  "width": 2.7,
                  "height": 2.2,
                  "depth": 3
                }
              },
              {
                "brand": "Ford",
                "model": "F-450",
                "yearModel": 2004,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 2.5,
                  "height": 2,
                  "depth": 3
                }
              }
            ]
          }
        },
        {
          "name": "Cotransport",
          "cities": [
            "GUADALAJARA"
          ],
          "state": "JALISCO",
          "country": "MX",
          "trucks": {
            "items": [
              {
                "brand": "Chevrolet",
                "model": "CX-5",
                "yearModel": 2019,
                "box": {
                  "type": "Seca (cerrada)",
                  "width": 4,
                  "height": 3,
                  "depth": 4
                }
              }
            ]
          }
        },
        {
          "name": "Andrés",
          "cities": [
            "EL LIMÓN",
            "MAGDALENA",
            "SANTA MARÍA DEL ORO",
            "GUADALAJARA",
            "ETZATLÁN"
          ],
          "state": "JALISCO",
          "country": "MX",
          "trucks": {
            "items": [
              {
                "brand": "chevrolet",
                "model": "12",
                "yearModel": 2020,
                "box": {
                  "type": "Seca (abierta)",
                  "width": 1,
                  "height": 2,
                  "depth": 3
                }
              }
            ]
          }
        }
      ]
    }
  }
}

和_AppSettings.config中的内容类似

<appSettings file="DebugPrimaryPaul_AppSettings.config">

请注意缺少的“ after”值,这会导致行格式错误。 该错误指的是Web.config中的一行,其位置低得多。固定“”。

答案 2 :(得分:0)

我要找的答案是将<替换为&lt;

相关问题