'EXCEL.EXE' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.26\System.Private.CoreLib.dll'.
Exception thrown: 'System.IO.FileLoadException' in System.Private.CoreLib.dll
Could not load file or assembly ' C:\Users\<UserName>\AppData\Local\Temp\ExcelDna.Host\ExcelDna.Host\<...>\ExcelDna.ManagedHost.dll'. Access is denied.
Exception thrown: 'System.IO.FileLoadException' in System.Private.CoreLib.dll
Could not load file or assembly 'ExcelDna.ManagedHost, Culture=neutral, PublicKeyToken=null'. Access is denied.
I've managed to get this working using the following ExclusionPath - I think WindowsDefender was slowing down the access to the file (or similar):
Add-MpPreference -ExclusionPath ' C:\Users\<UserName>\AppData\Local\Temp'
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/2e287178-940d-40c7-b7ce-464d08169b58n%40googlegroups.com.