Excel-DNA / Excel-DNA/ExcelDna

AddInReloader Rtd Issue

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.5k
Forks
292
Avg merge
20d 12h
Merged PRs (30d)
1

Description

@AlanStubbs wrote:

> I've been working on an adaptation of the AddInReloader project and it all works fine until I have RtdServer-based UDF calls in the workbook. In this case, my "master" addin is unable to fully unregister the current "slave" addin (ExcelIntegration.UnregisterXLL(path)) so that subsequently trying to delete the current slave xll produces a System.UnauthorizedAccessException. Strangely, it allows me to rename the slave xll file to slave.backup but then when I register the new slave addin (RegisterXLL(slave)), it actually registers slave.backup again.
>
> I've tried adding calls to ComServer.DllUnregisterServer() in various locations - the slave's AutoClose, before/after the call to UnregisterXLL, etc - all to no avail. All the problem code is running inside QueueAsMacro.
>
> Do you expect this behaviour - and do you know what I can do to fix it? With a blank workbook, everything works perfectly. I'm using Excel-DNA.0.32.0.
>
> Many thanks,
> Alan

Issue originally reported in the ExcelDna mailing-list:
https://groups.google.com/forum/#!topic/exceldna/LHsR2dZkl8g

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.