Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2017 Entity Framework Failed to retrieve data for this request

When trying to add a new EF Connection to a SQL Server I get this exception:

Failed to retrieve data for this request. Method not found: 'Void Microsoft.SqlServer.Management.Sdk.Sfc.EnumResult.set_CommandElapsedTime(System.TimeSpan)

Facts:

  • "Test Connection" works fine
  • It does not matter which database I try to connect (tried different sources, on premises and SQL Azure)
  • It used to work before
  • Reinstalling EF SDK did not help
  • The error message appears immediately after clicking "OK" (no delay)

Does anybody have an idea how to fix this?

like image 341
CrazyDoubleJ Avatar asked Jan 02 '26 00:01

CrazyDoubleJ


2 Answers

Re-install VS2017 solving the problem!

like image 97
gevl Avatar answered Jan 03 '26 22:01

gevl


I had the same problem. Installing Microsoft SQL Server Data Tools (SSDT) Fixed it for me

Download it here

like image 25
Miki Avatar answered Jan 03 '26 22:01

Miki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!