2015-11-18 38 views
0

我想部署我Outlook加載到Windows 10機器,但我總是在安裝後此錯誤:安裝Office自定義System.ArgumentException:值沒有在預期的範圍內

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上出現這個錯誤。請問有人可以告訴我發生了什麼事?

回答

相關問題