当我双击 addin.vsto 文件时出现 Ribbon1.xml 文件未找到异常

I am getting Ribbon1.xml file not found exception when I double click the addin.vsto file

我创建了一个 outlook vsto 插件。它没有安装在某些机器上,但在某些机器上它没有 work.So,为了调试,我双击了 .vsto file.And 它给了我以下异常:

Name: CustomPane_outlookAddIn From: file:///C:/Program Files (x86)//Outlook Plug-In/CustomPane_outlookAddIn.vsto

************** Exception Text ************** System.Deployment.Application.DeploymentDownloadException: Downloading file:///C:/Program Files (x86)//Outlook Plug-In/Ribbon1.xml did not succeed. ---> System.Net.WebException: Could not find file 'C:/Program Files (x86)//Outlook Plug-In/Ribbon1.xml'. ---> System.Net.WebException: Could not find file 'C:/Program Files (x86)//Outlook Plug-In/Ribbon1.xml'. ---> System.IO.FileNotFoundException: Could not find file 'C:/Program Files (x86)//Outlook Plug-In/Ribbon1.xml'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async) at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint) --- End of inner exception stack trace --- at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint) at System.Net.FileWebRequest.GetResponseCallback(Object state) --- End of inner exception stack trace --- at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.FileWebRequest.GetResponse() at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout) at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

我在加载项正确加载和未加载的机器上都收到此错误 outlook.I 我的 vsto 中确实有 ribbon1.cs 和 ribbon1.xml 文件 project.But,我没有在 all.So 的 ThisAddin.cs 文件中引用它,为什么要尝试加载该文件?

问题是我的 solution.And 中有一个 ribbon1.xml 文件,它被 vsto 自动选中 file.I 删除了解决问题的文件。