1
votes

For a project for school I need to implement a WCF service in an existing project. When I want to update the service references I got this message.

There was an error downloading 'http://localhost:510444/Service1.svc/$metadata'. The request failed with HTTP status 400: Bad Request. Metadata contains a reference that cannot be resolved: 'http://localhost:51044/Service1.svc'. Content Type application/soap+xml; charset=utf-8 was not supported by service http://localhost:51044/Service1.svc. the client and service bindings may be mismatched. The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml;charset=utf-8' was not the expected type 'text/xml; charset=utf8'..

(see picture 1)

error

Can someone help me out?

1
@StephenKennedy thanks will check this out! Didn't saw this topic before. - Robbe
That's why including your error message as plain text is so useful :) I wouldn't have been able to find the possible duplicate without it. I hope that helps! - Stephen Kennedy
@StephenKennedy didn't work. Still have the same error :( - Robbe

1 Answers

0
votes

The service needs to be running in order to update the reference. You can start it without debugging by setting that project as the startup project and then pressing CTRL + F5. Then you should be able to update the reference.