The connected services component Microsoft WCF web service reference provider failed.(HRESULT: 0x80131500) the project format is incorrect

3

I upgraded my project from dotNetCore 2.2 to 3.0 two weeks ago. Now I want to add a Webservice to it. I am using Visual Studio 2019

But I got this error when I clicked on Microsoft WCF Web Service Reference Provider

None of the suggestions about Microsoft WCF Web Service Reference Provider are the same error as mine

This is the error I got

The connected services component Microsoft WCF web service reference provider failed.(HRESULT: 0x80131500) the project format is incorrect

Can someone please suggest a fix for this? Thanks

c#
web-services
wcf
.net-core
asked on Stack Overflow May 15, 2020 by techstack • edited May 15, 2020 by techstack

2 Answers

0

I clicked on Microsoft WCF Web Service Reference Provider in my VS2019 and found no error. This is my VS2019 related information: enter image description here

You can show me the version information of your VS2019,Or you can reinstall VS2019 that the version information of VS2019 is consistent with that in the picture.

You can also generate proxy classes through svcutil.You can use this tool on the command-line interface of VS: enter image description here

Executing the above command will generate the a proxy class and configuration file on disk D.Then add these two files to your project.

Here's a link about svcutil:

https://docs.microsoft.com/en-us/dotnet/core/additional-tools/dotnet-svcutil-guide?tabs=dotnetsvcutil2x

answered on Stack Overflow May 19, 2020 by Ding Peng
0

In my case, there was an old package referenced in the csproj. After removing it from there, the error disappeared.

Removed package:

<ItemGroup>
    <PackageReference Update="Microsoft.NETCore.App" Version="2.2.8" />
</ItemGroup>
answered on Stack Overflow Oct 6, 2020 by Lex

User contributions licensed under CC BY-SA 3.0