KAMyAw
KAMyAw

Reputation: 21

Get 404 error while retrieving metadata only using dotnet-svcutil

Well, the problem is very strange, I have a WCF service served on a production environment with .Net framework 4.5.2, it's working well on the related WPF client.

And now, I'm coding on a test project using .Net 5, and this WCF server is running on localhost for convenience, the WPF client on it is also on local, the URL of WCF service is like http://localhos:port/Services/XXXXX.svc and on https, works fine in the WPF client, and of course, can both access normally on browser, and using Visual Studio Connected Services I can retrieve the services from both URL as well. But the strange thing is, if I use dotnet-svcutil to retrieve the service, it returns Http error 404 and can't generate client code, but if use svcutil from dotnet framework 4.8, it retrieves metadata and generate the code perfectly.

Upvotes: 0

Views: 177

Answers (0)

Related Questions