Excel-DNA/ExcelDna

Searching for machine.config in bin folder

Turhan8 opened this issue · 1 comments

I am using C# .net6. for developing an excel-dna add-in and I get this error multiple times while debugging. It is looking for the machine.config in the wrong location while debugging.

Exception thrown: 'System.IO.DirectoryNotFoundException' in System.Private.CoreLib.dll
Could not find a part of the path 'C:<application code location>\bin\x64\Debug\net6.0-windows\Config\machine.config'.

Exception thrown: 'System.Net.WebException' in System.Net.Requests.dll
Could not find a part of the path 'C:<application code location>\bin\x64\Debug\net6.0-windows\Config\machine.config'.

Exception thrown: 'System.Net.WebException' in System.Private.CoreLib.dll
Could not find a part of the path 'C:<application code location>\bin\x64\Debug\net6.0-windows\Config\machine.config'.

Any advice on how to fix this?

exception