the manifest may not be valid or the file could not be opened

眉间皱痕 提交于 2019-12-12 15:41:30

问题


I want to install outlook add-ins (Which is developed by Visual studio 2008) but I've got following error.

Name: From: file:///D:/Project/.Net Learning/OutlookAddIn3/OutlookAddIn3/bin/Debug/app.publish/OutlookAddIn3.vsto

Exception reading manifest from file:///D:/Project/.Net%20Learning/OutlookAddIn3/OutlookAddIn3/bin/Debug/app.publish/OutlookAddIn3.vsto: the manifest may not be valid or the file could not be opened.

************** Exception Text ************** System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from file:///D:/Project/.Net%20Learning/OutlookAddIn3/OutlookAddIn3/bin/Debug/app.publish/OutlookAddIn3.vsto: 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 that you specify a publisher and a product. at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole() --- End of inner exception stack trace --- at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole() at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemantics(ManifestType manifestType) 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()


回答1:


Probably your windows registered name have a special character like "*". I suggested to you change windows registered name. you can change it from registry in (Win XP):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

change value of these keys: RegisteredOrganization RegisteredOwner




回答2:


I know this is super old, thought I'd share. This is what fixed it for me:

https://social.msdn.microsoft.com/Forums/windows/en-US/4e4ee82b-308e-41ea-a8ad-0ea465aec3f5/the-manifest-may-not-be-valid-or-the-file-could-not-be-opened?forum=winformssetup

The short of it is my Installation folder URL was wrong.



来源:https://stackoverflow.com/questions/1054364/the-manifest-may-not-be-valid-or-the-file-could-not-be-opened

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!