Click here to Skip to main content
15,946,179 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys ,
i have a WCF service & i configured it to be authenticated with membership provider but i try now to add it as a service reference to web application but it get me error "there is error downloading the metadata......" & of course u know the rest of the syntax error

first how can i solve this ?

secondly do i have to create a certificate to make this work ??

here's part of my web config of the WCF service>>>>

        <binding name="WsHttpBinding">
          <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="None" />
            <message clientCredentialType="UserName" />
      <service behaviorConfiguration="ServiceBehaviour" name="TestAuthonticationService.Service">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WsHttpBinding"
            <dns value="localhost" />
        <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration=""
          contract="IMetadataExchange" />
        <behavior name="ServiceBehaviour">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
              membershipProviderName="AspNetSqlMembershipProvider" />
Updated 4-Mar-15 2:23am
Rajat_RJT 5-Mar-15 0:50am    
what is your error message? Is it "there was an error downloading the metadata from the address wcf" or "there was an error downloading metadata contains a reference that cannot be resolved" ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900