EXCEL VSTO Add-in Customization could not be loaded because the application domain could not be created.

Vytautas Slivinskas 1 Reputation point
2020-08-19T11:18:15.887+00:00

Anyone can guide me, whats need to be checked? I have client with 1 computer from ~100 which is not launching my VSTO Add-In. I tried to reinstall Addin, PIA2010/2007, Visual Studio Tools for Office and nothing helps. I got error message:

Customization URI: file:///C:/MyVSTOProgram/
Exception: 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, String[] pipeline, String assemblyName, String[] entryPoints)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.DomainInitializer.StartAddIn(IntPtr hostServiceProvider, String[] pipeline, String assemblyName, String[] entryPoints)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.LoadMafPipeline(AppDomain newDomain, IntPtr hostServiceProvider, String fullAssemblyName, String[] entryPoints, OfficeApp officeApplication, OfficeVersion officeVersion, IntPtr& executor)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor)

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,896 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,726 Reputation points
    2020-08-19T12:20:34.42+00:00

    Hi,

    Excel development / VSTO is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can ask the experts in the dedicated forums over here:

    Excel for Developers
    https://social.msdn.microsoft.com/Forums/Lync/en-US/home?forum=exceldev

    VSTO
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsto

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments