Unrecognized configuration section entityFramework

Brown, Matt 126 Reputation points
2023-04-03T17:22:51.3366667+00:00

I have an old C++ desktop application which I am working though and updating. I have installed the Entity Framework 6.4.4 and MySQL.Data.EntityFramework 8.0.20. I'm getting the above error and after looking around it was based on the entity framework not being added in, so I went and did that, but I still am getting the same error. Also, the error points to the app.exe log file, but that logfile is from a couple of days ago, and doesn't look to have latest version of my config file since I had updated it, and it doesn't show the new code. I copied everything over from when I rebuild the solution, so I'm not sure why the old log file is still there. The start line which the error points to is the start of this.

<entityFramework>
    <providers>
      <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework, Version=8.0.20.0, Culture=neutral, PublicKeyToken=<tokenID>"
      </provider>
    </providers>
  </entityFramework>

The only other line the error message points to is below and the value for the instance ID is 999, and I haven't changed it.

String ^iid = System::Configuration::ConfigurationManager::AppSettings["instanceId"];
Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Brown, Matt 126 Reputation points
    2023-04-10T05:24:01.2666667+00:00

    It is C++ CLI. I got an error in regards to not having MySQL until I added that. That is when the EntityFramework error happened so I add it only to still get it. I don't know of any other steps. I went looking for documentation for how this app is set up, but couldn't find any. I haven't had the time to try and create a new app yet. I have minimal C++ knowledge, and I have never worked with C++ CLI outside of this, and that's honestly been minimal work.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.