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
In my case, I removed the package System.ServiceModel in the csproj.
<ItemGroup>
<Reference Include="System.ServiceModel" />
</ItemGroup>
I recently upgraded my .Net 5 project to .Net 6 using Visual Studio 2022 current (v17.0.0) and found that removing the below from the .csproj file fixed the problem for me.
<ItemGroup>
<Reference Include="System.ServiceModel" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services" />
</ItemGroup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With