Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 417
techstack Avatar asked May 15 '20 09:05

techstack


2 Answers

In my case, I removed the package System.ServiceModel in the csproj.

  <ItemGroup>
    <Reference Include="System.ServiceModel" />
  </ItemGroup>
like image 156
Suhaib Raadan Avatar answered Nov 16 '22 17:11

Suhaib Raadan


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>
like image 1
cmpbedes Avatar answered Nov 16 '22 17:11

cmpbedes