Click here to Skip to main content
15,072,391 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 asp.net 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>>>>

XML
<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WsHttpBinding">
          <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="None" />
            <message clientCredentialType="UserName" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="ServiceBehaviour" name="TestAuthonticationService.Service">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WsHttpBinding"
          contract="TestAuthonticationService.IService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration=""
          contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ServiceBehaviour">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
          <serviceCredentials>
            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
              membershipProviderName="AspNetSqlMembershipProvider" />
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
    </behaviors>
Posted
Updated 4-Mar-15 2:23am
v2
Comments
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