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
I clicked on Microsoft WCF Web Service Reference Provider in my VS2019 and found no error. This is my VS2019 related information:
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:
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:
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>
User contributions licensed under CC BY-SA 3.0