【问题标题】:I am getting Ribbon1.xml file not found exception when I double click the addin.vsto file双击 addin.vsto 文件时出现 Ribbon1.xml 文件未找到异常
【发布时间】:2017-01-30 14:34:07
【问题描述】:

我创建了一个 Outlook vsto 插件。它没有安装在某些机器上,但在某些机器上它不起作用。所以,为了调试,我双击了 .vsto 文件。它给了我以下异常:

名称:CustomPane_outlookAddIn 来自:file:///C:/Program Files (x86)//Outlook插件/CustomPane_outlookAddIn.vsto

**************异常文本************** System.Deployment.Application.DeploymentDownloadException:正在下载 file:///C:/Program Files (x86)//Outlook Plug-In/Ribbon1.xml 没有成功。 ---> System.Net.WebException: 找不到文件'C:/Program Files (x86)//Outlook 插件/Ribbon1.xml'。 ---> System.Net.WebException:找不到 文件'C:/程序文件(x86)//Outlook 插件/Ribbon1.xml'。 ---> System.IO.FileNotFoundException: 不能 查找文件 'C:/Program Files (x86)//Outlook 插件/Ribbon1.xml'。在 System.IO.__Error.WinIOError(Int32 错误代码,字符串可能全路径)在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess 访问、Int32 权限、布尔用户权限、FileShare 共享、Int32 bufferSize,FileOptions 选项,SECURITY_ATTRIBUTES secAttrs,字符串 msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(字符串路径,FileMode 模式,FileAccess 访问、FileShare 共享、Int32 bufferSize、FileOptions 选项、字符串 msgPath,布尔 bFromProxy)在 System.Net.FileWebStream..ctor(FileWebRequest 请求,字符串路径, FileMode 模式、FileAccess 访问、FileShare 共享、Int32 长度、 布尔异步)在 System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint) --- End of 内部异常堆栈跟踪 --- 在 System.Net.FileWebResponse..ctor(FileWebRequest 请求,Uri uri, FileAccess 访问,布尔 asyncHint) 在 System.Net.FileWebRequest.GetResponseCallback(对象状态)---结束 内部异常堆栈跟踪 --- 在 System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
在 System.Net.FileWebRequest.GetResponse() 在 System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) --- 内部异常堆栈跟踪结束 --- at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(时间跨度 超时)在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

我在插件正确加载和在 Outlook 中未加载的两台机器上都收到此错误。我的 vsto 项目中有一个ribbon1.cs 和ribbon1.xml 文件。但是,我没有引用它在我的 ThisAddin.cs 文件中。那么,它为什么要尝试加载该文件?

【问题讨论】:

    标签: c# vsto outlook-addin outlook-2013 ribbonx


    【解决方案1】:

    问题是我的解决方案中有一个ribbon1.xml 文件。vsto 文件自动选择了它。我删除了解决问题的那个文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-27
      • 2011-07-22
      • 2021-11-23
      • 2011-04-29
      • 2015-06-03
      • 1970-01-01
      • 2022-01-21
      • 1970-01-01
      相关资源
      最近更新 更多