2

I had configuration warning in app.config of my wpf application.

my entire app.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns="schema URL">
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
</configuration>

I tried :

How to remove warning 'The 'configuration' element is not declared.' Visual Studio C#

and

The configuration element is not declared

and as stated in one of answers, tried to restart VS and start again. No luck

enter image description here

The configuration warning is gone, however the application can't start

Community
  • 1
  • 1
Mefhisto1
  • 2,188
  • 7
  • 34
  • 73

1 Answers1

4

Use this App.config file :

<?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <startup> 
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
        </startup>
    </configuration>
Amol Bavannavar
  • 2,062
  • 2
  • 15
  • 36