我已经开发了 VSTO 插件。现在,当我尝试在我的机器上安装 VSTO Addin 时,出现如下异常。
System.Xml.XmlException: '<',十六进制值 0x3C,是无效的属性字符。第 21 行,位置 39。
我已经在第 21 行签入了 .vsto 文件。该行如下。
<publisherIdentity name="CN="<itranscript.net>""/>
Run Code Online (Sandbox Code Playgroud)
上面一行有什么问题。谁能帮我?
Pab*_*nNZ 10
我知道这已经很旧了,但这是我在这里搜索时出现的第一件事。我遇到了类似的问题,但这是由于单独的 app_settings.config 文件中的格式错误的元素造成的,所以它让我困惑,因为错误引用了 Web.Config。所以在Web.config中,有这样的内容
<appSettings file="DebugPrimaryPaul_AppSettings.config">
Run Code Online (Sandbox Code Playgroud)
在 _AppSettings.config 中是这样的
<add key ="RegionalCodes" value="xxxxxxxxxxxxxxxxxx />
Run Code Online (Sandbox Code Playgroud)
请注意缺少 " 后值,这会导致行格式错误。该错误引用了 Web.config 中更低的行。将 " 放入修复了它。
我找到了解决方案。<publisherIdentity name="CN="<itranscript.net>""/>是不正确的。鉴于名称的正确价值解决了我的问题......
| 归档时间: |
|
| 查看次数: |
17389 次 |
| 最近记录: |