问题
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