0

I created a new ASP.Net site, added a WCF Data Service class, connected to database, all working.

I tested on WPF I can add this Service Reference without problem.

The problem is when I try to connect to this WCF Data Service from UWP, the add service reference to a WCF Data Service 5.6.4, then this error appears:

Data service client code-generation failed. Specified Windows Store Framework '.NETCore,Version=v5.0' is not supported. Only .NETCore 4.5 and above is supported.

On WPF it works as expected. Why on UWP it does not work as expected? What is the problem?

Tony
  • 16,527
  • 15
  • 80
  • 134
  • http://stackoverflow.com/questions/36632282/how-to-make-a-uwp-that-will-work-with-the-default-wcf-service-application – Bart Feb 05 '17 at 12:01
  • On step 4 of that answer the error appears when connect to a WCF Data Service 5.6.4 – Tony Feb 05 '17 at 18:32
  • Possible duplicate of [How to use WCF services in Windows 10 Universal App?](http://stackoverflow.com/questions/31844768/how-to-use-wcf-services-in-windows-10-universal-app) – Xie Steven Feb 06 '17 at 07:05

1 Answers1

0

For WCF data service, the "add service reference" operation should not be a right way.

You could see this document Using a Data Service in a Client Application. It shows that using HTTP actions to perform create, read, update, and delete operations on the entity data that the addressed resource represents.