Otrzymuję wyjątek Nierozpoznany element "dostawcy" w środowisku wykonawczym, gdy używam Entity Framework 5.0.0 z .NET 4.0. Właściwie z .NET 4.0 jest to wersja Entry Framework wersji 4.4.0, która jest ładowana, gdy robię pakiet instalacyjny z NuGet. Kiedy sprawdzić właściwości pliku w Eksploratorze widzę tak:Entity Framework: Nierozpoznany element "dostawca wyjątek"
Oto mój plik konfiguracyjny
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<connectionStrings>
<add name="xxx" connectionString="metadata=res://*/StreetMusicModel.csdl|res://*/StreetMusicModel.ssdl|res://*/StreetMusicModel.msl; provider=MySql.Data.MySqlClient;provider connection string=' server=xxx.net; user id=xxx; password=xxx; database=xxx'" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v12.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity" />
</providers>
</entityFramework>
mam uczucie Entity Framework 4.4.0 nie jest w stanie rozpoznać metka. Czy mogę po prostu usunąć lub zmienić nazwę sekcji? Po usunięciu sekcji otrzymuję kolejny wyjątek: Dostawca podstawowy nie powiodło się w dniu Otwarcia.
spróbuj usunąć ", Wersja = 4.4.0.0, Culture = neutralny, PublicKeyToken = b77a5c561934e089' –