question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method not found: 'Boolean System.Data.Entity.Core.Common.DbProviderManifest.SupportsParameterOptimizationInSchemaQueries()'

See original GitHub issue

Hi,

I’ve recently updated Visual Studio to version 15.7.1

Now, when trying to update model like this image, after clicking “Finish” I get this image

The output window has the following:

Unable to generate the model because of the following exception: ‘System.MissingMethodException: Method not found: ‘Boolean System.Data.Entity.Core.Common.DbProviderManifest.SupportsParameterOptimizationInSchemaQueries()’. at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.CreateFilteredCommand(String sql, String orderByClause, EntityStoreSchemaFilterObjectTypes queryTypes, List1 filters, String[] filterAliases) at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadDataTable[T](String sql, Func2 orderByFunc, DataTable table, EntityStoreSchemaFilterObjectTypes queryTypes, IEnumerable1 filters, String[] filterAliases) at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadTableDetails(IEnumerable1 filters) at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadStoreSchemaDetails(IList1 filters) at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GetStoreSchemaDetails(StoreSchemaConnectionFactory connectionFactory) at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.CreateStoreModel() at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GenerateModel(List1 errors) at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModels(String storeModelNamespace, ModelBuilderSettings settings, List`1 errors) at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModel(ModelBuilderSettings settings, IVsUtils vsUtils, ModelBuilderEngineHostContext hostContext)’.

In this project:

  • Windows 10 version 1803
  • The EntityFramework version is 6.2.0
  • The .Net version is 4.7.1

What I’ve tried:

  • Clean
  • Rebuild
  • Reinstall EntityFramework (with removing leftover DLLs from the project)
  • Change .Net version to earlier and back

Any help would be appreciated.

Thank you in advance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

10reactions
ChrisWaitmancommented, Jun 19, 2018

Edit: Problem solved!

I deleted the folders:

  • C:\Windows\Microsoft.NET\assembly\GAC_MSIL\EntityFramework
  • C:\Windows\Microsoft.NET\assembly\GAC_MSIL\EntityFramework.SqlServer

Close VS before doing this.


Hi, same problem here! Updated yesterday from 15.7.0 to 15.7.3 and now i get the same error… 😦 This is very annoying because i have urgent development work to do!

OS: Windows 10 Version under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE is 6.1.3 ??!!

grafik

grafik

I have this in the GAC too… and i’m unable to uninstall… grafik

Has anybody a solution to this problem? Thanks!

2reactions
miromakhcommented, May 16, 2018

@divega , Hi, Thank you so much!!! gacutil /u EntityFramework worked like a charm. I don’t know how it got to the GAC if it shouldn’t be there at first place and if there’s a program that installed it and it will seize working - so be it. On this machine I only care about being able to use Visual Studio… 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - EF System.MissingMethodException
Unable to generate the model because of the following exception: 'System.MissingMethodException: Method not found: 'Boolean System.Data.Entity.
Read more >
Method not found: 'Boolean System.Data.Entity.Core. ...
Hi, I've recently updated Visual Studio to version 15.7.1 Now, when trying to update model like this , after clicking "Finish" I get...
Read more >
EntityFramework Issue System.MissingMethodException
Unable to generate the model because of the following exception: 'System.MissingMethodException: Method not found: 'Boolean System.Data.Entity.
Read more >
DbProviderManifest Class (System.Data.Entity.Core. ...
Returns a boolean that specifies whether the provider can handle expression trees containing instances of DbInExpression. The default implementation returns ...
Read more >
I am using Entity framework 6.2.0 and I am getting ...
Unable to generate the model because of the following exception: 'System.Data.Entity.Core.EntityCommandExecutionException: An error occurred ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found