Excel-DNA / Samples

Various sample projects and snippets related to Excel-DNA
MIT License
124 stars 80 forks source link

AddInReloader Sample throws ApplicationBase could not be set. #6

Closed robodude666 closed 8 years ago

robodude666 commented 8 years ago

I downloaded the AddInReloader sample, and updated the paths in the xml file to my AddInReloader.dll and AddInReloader-Addin.xll paths.

The Addin unloads correctly, however when the AppDomainSetup is being created I get the following error:

A problem occurred while the add-in was creating an isolated
application domain and loading required assemblies.

ApplicationBase could not be set.

This is an unexpected error. Please report this error to the add-in developer.

Additional error information: HRESULT 0x0D642078

This add-in is built with Excel-DNA and is being loaded from the following location:

C:\my\addin\path\AddInReloader-AddIn.xll

Any idea why this could be happening?

-robodude666

robodude666 commented 8 years ago

Woops. Apparently the AddInReloader cannot be used to reload itself.

Updated my xml file to point to another addin/dll and it works perfectly fine.

-robodude666