我正在尝试将我的Outlook加载项部署到Windows 10计算机,但我在安装后总是遇到此错误:
Name:
From: file:///C:/Users/Public/MycompanyOutlookAddIn.vsto
************** Exception Text **************
System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.VisualStudio.Tools.Office.Runtime.Interop.VSTOEENativeMethods.GetValidCompatibleFramework(String compatibleFrameworkXml)
at Microsoft.VisualStudio.Tools.Office.Runtime.CompatibleFrameworksValidation.ParseFirstValidFramework(String compatibleFrameworksXml)
at Microsoft.VisualStudio.Tools.Office.Runtime.OfficeAddInDeploymentManager.OnAddInManifestsDownloaded(AddInManifestsDownloadedArgs args)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.RaiseOnAddInManifestsDownloadedEvent(IClickOnceAddInInstaller addInInstaller, Uri deploymentManifestUri, AddInInstallationStatus addinSolutionState, String productName, String deploymentManifestXml, String applicationManifestXml, String hostManifestXml, String logFilePath, String version, Uri supportUri)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
多年前的一些问题表明路径太长了,所以我将我改为Public
目录,但我仍然收到此错误。
我尝试过的另一件事就是运行:
rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache
但重新安装后我得到了同样的错误。
奇怪的是,当我部署到Windows 7机器时,它的工作非常完美。加载项的开发在Windows 8.1中没有太多问题。我只在Windows 10上收到此错误。有人可以告诉我发生了什么吗?
答案 0 :(得分:3)
您必须安装扩展用于Office运行时的Visual Studio 2010工具