vendredi 18 avril 2014

initialisation - élément de configuration c# Visual Studio 2012 Express n'est pas déclaré - Stack Overflow


I have the following issue and I was not able to find anything sufficient in order to resolve it.


Before debugging my application I get a warning that says configuration element is not declared. The app compiles and works fine though. I recently tried to add a connection string in the configuration section and pull it back in the app. Then I get a proper error when it tries to access it saying "Configuration system failed to initialize"


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections />
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>
<system.serviceModel>
<bindings>two basichttpbindings here</bindings>
<client>two endpoints here that bind with the basic httpbindings above. This is irrelevant as it was added even after the problem appeared</client>
</system.serviceModel>
</configuration>

Nobody has provided a sufficient answer in the fora so far. Has something changed or does anybody know anything related to that?


Thank you in advance



I have the following issue and I was not able to find anything sufficient in order to resolve it.


Before debugging my application I get a warning that says configuration element is not declared. The app compiles and works fine though. I recently tried to add a connection string in the configuration section and pull it back in the app. Then I get a proper error when it tries to access it saying "Configuration system failed to initialize"


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections />
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>
<system.serviceModel>
<bindings>two basichttpbindings here</bindings>
<client>two endpoints here that bind with the basic httpbindings above. This is irrelevant as it was added even after the problem appeared</client>
</system.serviceModel>
</configuration>

Nobody has provided a sufficient answer in the fora so far. Has something changed or does anybody know anything related to that?


Thank you in advance


0 commentaires:

Enregistrer un commentaire