安装VSTO后启动Outlook时出错

时间:2017-12-13 22:21:04

标签: c# outlook vsto

我正在尝试为Outlook功能区按钮构建VSTO安装程序。我已经尝试将application.manifest和application.dll.manifest放在清单注册表项中,并且在我安装后启动Outlook时我都收到错误,我已经包含了。

我还包括我的注册表项,我如何签署清单以及两个清单代码(它们太大而无法粘贴)。

使用application.manifest时出错

System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from file:///C:/Program%20Files%20(x86)/Company/ApplicationInstaller/Application.manifest: the manifest may not be valid or the file could not be opened. ---> System.Deployment.Application.InvalidDeploymentException: Deployment manifest is not semantically valid. ---> System.Deployment.Application.InvalidDeploymentException: Deployment manifest identity must be strongly named.
   at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()
   --- End of inner exception stack trace ---
   at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()
   at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

使用application.dll.manifest时出错

System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from file:///C:/Program%20Files%20(x86)/Company/ApplicationInstaller/Application.dll.manifest: the manifest may not be valid or the file could not be opened. ---> System.Deployment.Application.InvalidDeploymentException: Deployment manifest is not semantically valid. ---> System.Deployment.Application.InvalidDeploymentException: Deployment manifest requires <deployment> section.
   at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()
   --- End of inner exception stack trace ---
   at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()
   at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

Application.manifest

https://pastebin.com/WWDGdWJC

Application.dll.manifest

https://pastebin.com/Xin6GTtm

How I am Signing the application

Registry Keys Set During Install

我现在已经在墙上撞了几天。任何帮助表示赞赏。

谢谢!

0 个答案:

没有答案