Hi @tma9 ,
MyService.exe
is the name of the file. MyService.dll.config
is the runtime app.config
for the service. It should be deployed with the MyService.exe
. MyService.dll.config
is the file you should be updating. When you built that service successfully, the MyService.dll.config
should be in the bin/debug
folder with the exe. You can use Notepad and view the config file. The dll.config
file should be deployed to the same location as the MyService.exe
is located(in your scenraio should be C:\Users\User\source\repos\MyService\MyService\bin\Release\net6.0\publish
) so .NET can find it. And when you modify the key value by RefreshSection
, the MyService.dll.config
will be updated.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Rena