Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

WCF Service cannot find any service metadata. This may cause the client application to run improperly. Please check if the metadata is enabled.

$
0
0

Hi,

I am trying to debug an existing set of WCF services hosted under IIS. However on attempting to debug, the services fail to start with message,
"WCF Service cannot find any service metadata. This may cause the client application to run improperly. Please check if the metadata is enabled."

I have verified the web.config within the host project and binding, endpoints, contract names look good. Contract name matches the name in the code. This is a TFS controlled project and debugs fine on other user's machine. My hunch is that there might be machine settings some where that might be the cause of this. 

This is my interface definition:

namespace Services.Code.Contracts.Service
{
    [ServiceContract(Namespace = "http://Services.BPIntegration")]
    [SuppressMessage("ReSharper", "InconsistentNaming")]
    public interface IPolarisBPService
    {
        [OperationContract]
        [FaultContract(typeof(IncorectDataFault))]
        [FaultContract(typeof(RecordNotFoundFault))]
        CreateBusinessPartnerResponse CreateBusinessPartnerOut(Guid clientBrokerId, BusinessPartnerInfo data);

        [OperationContract]
        [FaultContract(typeof(IncorectDataFault))]
        [FaultContract(typeof(RecordNotFoundFault))]
        IEnumerable<Tuple<string, EventLogEntryType>> UpdateBusinessPartnerIn();

        [OperationContract]
        Dictionary<string, string> GetIntegrationMappings(Dictionary<string, string> sourceSchemaSourceValuePairs);

    }
}

This is the excerpt web.config from the host project:

<service name="Services.Code.Behavior.PolarisBPService" behaviorConfiguration="PolarisBPServiceBehavior"><endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding" contract="Services.Code.Contracts.Service.IPolarisBPService"/></service>

Any help would be deeply appreciated.

Thanks!


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>