Bug 10295 - Entity Framework: exception at System.Configuration.ConfigurationElement
Summary: Entity Framework: exception at System.Configuration.ConfigurationElement
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Configuration ()
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-02-14 07:38 UTC by Oleg
Modified: 2013-02-14 07:38 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample MonoDevelop project to reproduce error (4.68 MB, application/octet-stream)
2013-02-14 07:38 UTC, Oleg
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 10295 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Oleg 2013-02-14 07:38:25 UTC
Created attachment 3374 [details]
Sample MonoDevelop project to reproduce error

Please, take a look at discussion at http://mono.1490590.n4.nabble.com/Entity-Framework-new-issues-tp4658551.html

Application with Entity Framework with model first and embedded metadata fails with configuration error. There is also discussion at db provider vendor forum: http://forums.devart.com/viewtopic.php?f=30&t=25699

Note: you may need to update database connection string in App.config with your credentials
Note: sample project includes trial license for database provider that expires within 6 days, it could be required to regenerate license after this time following instructions at vendor site if there will be no free provider with EF6 support at that time
Note: sample project includes System.Xml.dll and EntityFramework.dll with patches made after Mono 3.0.3, do not delete them if you test with Mono 3.0.3 or earlier

Full exception:

System.InvalidOperationException: The provider for invariant name 'Devart.Data.PostgreSql' is specified multiple times in the application configuration. The invariant name must be unique for each configured provider.
  at System.Data.Entity.Internal.ConfigFile.ProviderCollection.BaseAdd (System.Configuration.ConfigurationElement element) [0x00000] in <filename unknown>:0
  at System.Configuration.ConfigurationElementCollection.OnDeserializeUnrecognizedElement (System.String elementName, System.Xml.XmlReader reader) [0x00048] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs:523
  at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x002cc] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:370
  at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x0038d] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:388
  at System.Configuration.ConfigurationSection.DoDeserializeSection (System.Xml.XmlReader reader) [0x000d7] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:186
  at System.Configuration.ConfigurationSection.DeserializeSection (System.Xml.XmlReader reader) [0x00000] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:194
  at System.Configuration.Configuration.GetSectionInstance (System.Configuration.SectionInfo config, Boolean createDefaultInstance) [0x000db] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/Configuration.cs:305
  at System.Configuration.ConfigurationSectionCollection.get_Item (System.String name) [0x00032] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:68
  at System.Configuration.Configuration.GetSection (System.String path) [0x00024] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/Configuration.cs:254
  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x001d4] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:504
  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00006] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:414
  at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Web/System.Web.Configuration_2.0/HttpConfigurationSystem.cs:41
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00006] in /usr/ports/lang/mono/work/mono-3.0.3/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:162
  at System.Data.Entity.Internal.AppConfig..ctor () [0x00000] in <filename unknown>:0
  at System.Data.Entity.Internal.AppConfig..cctor () [0x00000] in <filename unknown>:0