Reputation: 1570
My problem is very simple, but unfortunately I cannot figure out what's wrong. I've created a new MVC4 Internet Application project with Razor syntax, then I added another WCF Library project to this solution. I did not make any change on these codes. However, as I added the WCF project as a service reference in the MVC 4 app, I'm getting 1 Error message and 3 Warning messages:
I read some article but did not resolved my problem. If somebody know the answer for my problem, please tell me.
THX.
Upvotes: 16
Views: 16541
Reputation: 101
You can try the following :
Upvotes: 2
Reputation: 41
In Visual Studio 2022, You need to create a folder "Connected Services" in project path, via Windows Explorer, not Visual studio solution explorer'
Upvotes: 3
Reputation: 51
In Visual Studio 2019, I fixed the error (system cannot find path specified) by creating a new folder named "Connected Services" inside project folder
Upvotes: 5
Reputation: 101
sometimes you need to create a folder "Service References" in project path. If you dont have this folder it should gives this path error.
Upvotes: 10
Reputation: 31
If using VS 2019, check if in Solution Explorer you see "Service Reference". Than edit the project file for following
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
Upvotes: 3
Reputation: 1209
If you're experiencing this problem in 2021 with VS2019. Add a folder to the project called "Connected Services"
Upvotes: 23
Reputation: 1570
When you add the reference, on advanced setting remove the reuse types checkbox.
Upvotes: 41