安装 Office 自定义 System.ArgumentException:值不在预期范围内
Installing Office Customizations System.ArgumentException: Value does not fall within the expected range
我正在尝试将我的 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 上收到此错误。有人可以告诉我发生了什么事吗?
您必须安装扩展程序 Visual Studio 2010 Tools for Office Runtime
我正在尝试将我的 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 上收到此错误。有人可以告诉我发生了什么事吗?
您必须安装扩展程序 Visual Studio 2010 Tools for Office Runtime