UWP App talking to WCF Client RRS feed

  • Question

  • I have a windows 8.1 app that is working 100% in visual Studio 2013, I am trying to port it and get it working in vs 2019.

    I have it running but when the app tries to use the WCF project it can new up any calls to the WCF services and gives me this error: - 

    Could not load file or assembly 'System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I have the following references in the WCF project: -

    Windows Mobile Extensions for the UWP

    Any help would be hugely appreciated as its a mission critical app which they dont want to re-write but have asked me to try to get it running in Vs 2019 targeting Windows 10.



    Tuesday, February 4, 2020 10:16 AM

All replies

  • Hi,
    As far as I know, UWP is based on DotNet Core. In DotNet Core applications for WCF clients, it may not be compatible with WCF services, please refer to the official repository below.
    At present, only the WCF service created by Basichttpbinding can be properly called in a Core-Based project. But this cannot explain why it works properly in the previous version.
    We have to re-construct the WCF client project, which is used to call the service to return the data. This can verify whether it supports the remote WCF service. I advise you to in the WCF project add service reference again to call the service by using a client proxy.
    Feel free to let me know if there is anything I can help with.
    Best Regards
    Wednesday, February 5, 2020 3:42 AM