Reputation: 6563
I have an Excel add in which used to work perfectly. Lately, many customers received the following error (in the end of this question).
Environment details:
Any help will be highly appreciated.
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)
Upvotes: 2
Views: 2011
Reputation: 12673
Building with a different .NET framework didn't help for us, and isn't a reliable option anyways since we need .NET 4.5.
Reinstalling Visual Studio Tools for Office Runtime made the problem disappear in some instances. Dancing clockwise around the campfire three times, chanting "vee-store" also sometimes helps, but not all of our customers have campfires.
It seems the use case that fails for us is Windows 7, Office 2010, allow Office to register for updates via Windows Updates, VSTOR is installed via Windows Updates, .NET Framework is installed after VSTOR. This is the case where we get this error. Re-installing VSTOR fixes it for us.
Another problem seems to be that our earlier alpha versions used the ClickOnce installation, and later versions used an MSI installer. If the ClickOnce alpha version threw an exception during startup and got itself blacklisted with Excel, it would cause the MSI installation to fail. Searching the registry for our add-in name found extra spots in the HKCU and HKLM which conflicted.
Upvotes: 1
Reputation: 19
I was facing same exception for outlook add-in.
with Environment:
Compiled add-in under .net 4.0 fixed the issue.
Upvotes: 2