2
When starting my application, an error message is displayed. The problem is that I cannot locate the source of the problem. Before I couldn’t, it started today. I thought it might be some configuration, but I didn’t change anything in Visual Studio, as I remember. Visual Use 2017 (English) and WPF. See the error image below:
Here is my App.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="inetConn" connectionString="Data Source=NOTEBOOK\Instancia; Initial Catalog=SILOS; User Id=sa; Password=@d123" providerName="System.Data.SqlClient"/>
</connectionStrings>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
how is your config ?
– Rovann Linhalis
@Rovannlinhalis, I will post my App.Config in the post edition.
– pnet
in one of the errors, says that configSections should be the first child, within the Configuration node. I think you can start to solve it there
– Rovann Linhalis