ADFdi Appears Under Inactive Application Add-ins and Re-Enabling it Fails With CannotCreateCustomizationDomainException (Doc ID 2014820.1)

Last updated on JANUARY 24, 2017

Applies to:

Oracle JDeveloper - Version 11.1.1.1.0 to 11.1.1.6.0 [Release Oracle11g]
Generic Windows
Note: the information in this article only applies to older versions of ADF Desktop Integration. Starting with version 11.1.1.7.0 (3.0.0), the required interop assembly is installed with ADFdi automatically.

Symptoms

Symptoms

  1. Install the ADFdi runtime client
  2. Run Excel and note that the buttons in the worksheets do not work and the custom ribbon tab does not appear.
  3. From the Office Button, select Excel Options
  4. Confirm that ADFdi appears under Inactive Application Add-ins: look for "Oracle ADF Desktop Integration Runtime Add-in for Excel"

Investigation

  1. Attempt to re-enable the ADFdi add-in. See Add-in Disabled for details.
  2. If unsuccessful, allow VSTO to display alerts in order to gather more detailed information. Search for "VSTO_SUPPRESSDISPLAYALERTS" at the end of this article
  3. Now, attempt to re-enable the ADFdi add-in again. This time you may see an error message like "An add-in could not be found or could not be loaded.". Clicking the Details button, you may get something like:
Details

Customization could not be loaded because the application domain could not be created.

************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.Microsoft.VisualStudio.Tools.Applications.Contract.IEntryPointContract2.LoadEntryPoints(EntryPointInfo info)
at Microsoft.VisualStudio.Tools.Office.Internal.AddInHostAdapter.LoadEntryPoints()
at Microsoft.VisualStudio.Tools.Office.Runtime.EntryPointView.Microsoft.VisualStudio.Tools.Office.Runtime.IEntryPointView.Execute()
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.ExecuteEntryPoint(IEntryPointView entryPointView, IntPtr hostServiceProvider, String assemblyName, String[] entryPoints)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, AddInToken addInToken, String assemblyName, String[] entryPoints)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, AddInToken addInToken, String assemblyName, String[] entryPoints)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String documentFullLocation, String documentName, String assemblyLocation, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms