Service metadata not accessible error when running WCF service

Asked By 40 points N/A Posted on -
qa-featured

Hi,

I have a WCF web service that I am trying to run, but I am getting the following error:

Failed to add a service. Service metadata may not be accessible.

Make sure your service is running and exposing metadata.

Error: Cannot obtain Metadata from ******************************* 5100/Service

There was an error downloading

I hope someone can help me with this.

Thanks!

Microsoft WCF Test Client-error-Failed to add a service
SHARE
Answered By 0 points N/A #136769

Service metadata not accessible error when running WCF service

qa-featured

Hello,

Here are some suggestions that might help you.

1. First, I would propose you to work-around. I believe that you will be served much better by generating a usual WCF reply in any case. Even though a number of the information returned from the third party, network service is the same with your requirement in your network application.

Try to re-engineer the WCF to maintain with the modifications. It is not simple to do that but you will manage to return your authentic data to your online application. Also, remember, to create a usual information article to go back to your web application.

Make use of the network service reply to settle your information article, and after that, you are able to make information dispensation on the network comeback however transmit your personal information downward to the network application.

This form does not shatter as simply in the long-standing. Moreover, if you cannot use a WSDL-created proxy like a WCF return kind, possibly somebody else might evaluate in on this.

2. Another one solution is to change your browser’s settings. Maybe they are set wrong. So, go and check in the field of settings, click on Connections and then get into the field of LAN Settings. Be sure that the box in front the option: “Automatically detect Settings” is UNCHECKED.

3. Apparently when you change the name of the files, contained the solution you ignore to rename a specific section. So all you have to do is to find the “svc file” in the solution explorer.

Normally in default settings it is over the “webconfig” folder. After you have found it, right click on it and from the menu select the option “View markup”; then it will appear a code which will have the following form:

 <%@ ServiceHost Language="C#" Debug="true" Service="name of project.name of project" CodeBehind="name of project.svc.cs" %>

Service= it should contain the exact names that are in the svc file.

Before you change it, the code will probably written like this:”name of project.Service1” where Service1 was the svc folder that you have changed its name. After you have changed it, you will eliminate the fault.

Good Luck!!

Login/Register to Answer

Related Questions