2016-05-25 61 views
0

.NET Framework 4.0を使用するまでは正常に機能していたOutlook 2010アドインがあります。 .NET Frameworkが4.5.2にアップグレードされた後、いくつかのユーザーのマシンでロードが停止しました(問題はすべてのユーザーに発生するわけではなく、自分のマシンで正常に動作します)。いくつかのブログを読んだ後、私は、ユーザーのマシンで環境変数VSTO_SUPPRESSDISPLAYALERTSに0の値を割り当てられ、Outlookが開かれ、それが私たちのアドインをロードしようとすると、次のエラーを得た:Outlook 2010アドインでエラーが発生しないHRESULTの例外:0x8004063E

Exception from HRESULT: 0x8004063E 

************** Exception Text ************** 
System.Runtime.InteropServices.COMException (0x8004063E): Exception from HRESULT: 0x8004063E 
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) 
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor) 
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IDomainCreator.CreateCustomizationDomain(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor) 

使用します。 Net Framework 4.0は私たちの選択肢ではなく、4.5.2を使用する必要があります。また、レジストリキーHKEY_CURRENT_USER \ Software \ Microsoft \ VSTO \ SolutionMetadataを削除して、アドインを再インストールしようとしましたが、うまくいきませんでした。 しかし、私が気付いたことの1つは、ユーザのマシンが上記のレジストリキーの下にPreferredClrの値を持たないことでした。すべてのヘルプは理解されるであろう

<compatibleFrameworks xmlns=\"urn:schemas-microsoft-com:clickonce.v2\"> 

<framework targetVersion=\"4.5.2\" profile=\"Full\" supportedRuntime=\"4.0.30319\" /> 

</compatibleFrameworks> 

:それはデータのみが含まれていcompatibleFrameworksと呼ばれる値が含まれています。ありがとう!

P.S:すべてのマシンでWindows 7を使用している

答えて

0

再インストールMicrosoft Officeのランタイム(x64)の 2010のツールで問題が解決のVisual Studioを。

関連する問題