Also one important thing is that when running Excel as administrator on the failing machine the add-in works.
But I'm not able to use that as a long term solution because other machines wont be able to elevate their security.
I have also tried to use process monitor to see the registry edits that occur on both machines to see if there is a difference or any obvious failures.
the only difference i see is that the failing machine performs less operations before it quits. The machine that works will complete more registry operations.
I have attached my findings in an image.
This is the line that the failing machine never reaches, or maybe it does reach and just blows up here.
EXCEL.EXE Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
Unhandled exception at 0x0000000000058C00 in EXCEL.EXE: 0xC0000005: Access violation executing location 0x0000000000058C00.
If there is a handler for this exception, the program may be safely continued.
When debugging with the Excel.DNA integration source project attached to my diagnostic test solution I never hit any of the break points I set in the Com Interop, Com registration classes.
I'm just wondering at what point does Excel.DNA integration start accessing the registry and if there's some information you could provide.
Also excel crashes before any of my logging kicks in as well.
Thank you
In the simple test case where you only have a single UDF, and no ribbons etc., Excel-DNA should not be doing any registry access at all.
The type of Access violation exception you show comes from an internal error in Excel (e.g. a corrupt pointer), and not from failing some security check.
Depending on your patience you could:
· Check for any unusual security-related software, e.g. EMET any anti-virus software
· Reinstall Excel and .NET, or
· Test a native code add-in build with the Excel SDK, and see whether that loads. This would eliminate .NET and Excel-DNA from the equation.
-Govert
Look in these locations for the entry for WatchDox.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"= WatchDox.exe
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run""= WatchDox.exe
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations WatchDox.exe