0

We have DLL's added from the project and it is dependent on the App.config,

It will work fine when I use the Console project because the config can be read and structure is something like this:

enter image description here

But if I will try to add the DLL's and App.config on asp.net core project then looks like the problem is it is not reading anymore the App.config and gives me some error when I ran it. here the structure for asp.net core project:

enter image description here

And for the content of App.config is something like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>

  <configSections>
    <section name="Helper" type="System.Configuration.AppSettingsSection" />
    <section name="Message" type="System.Configuration.AppSettingsSection" />
  </configSections>

  <Helper>
    <add key="IsQueue" value="N" />
    <add key="QueueType" value="Y" />
  <Helper>

  <Message>
    <add key="BrokerName" value="Y"/>
  </Message>

</configuration>

Any suggestion/comments why it doesn't work for asp.net core project. TIA

Syntax Rommel
  • 932
  • 2
  • 16
  • 40

0 Answers0