Excel-DNA / Excel-DNA/ExcelDna

Searching for machine.config in bin folder

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

Description

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:\\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:\\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:\\bin\x64\Debug\net6.0-windows\Config\machine.config'.

Any advice on how to fix this?

![exception](https://github.com/Excel-DNA/ExcelDna/assets/66305325/54d57c42-57b4-4c54-a76f-a44014920dbf)

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.