Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:47:15+00:00 2026-06-04T19:47:15+00:00

<system.serviceModel> <services> <service name=myClass.IService1 behaviorConfiguration=myService> <endpoint name=ep1 address=http://localhost:57582/Service1.svc contract=IService1 binding=basicHttpBinding /> <endpoint address=mex binding=mexHttpBinding

  • 0
 <system.serviceModel>
    <services>
      <service
          name="myClass.IService1"  behaviorConfiguration="myService">
        <endpoint
          name="ep1"
          address="http://localhost:57582/Service1.svc"
          contract="IService1"
          binding="basicHttpBinding"
          />
        <endpoint 
             address="mex"
             binding="mexHttpBinding"
             contract="IMetadataExchange" />
      </service>
    </services>

    <behaviors>
      <serviceBehaviors>
        <behavior name="myService">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>

but still 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:47:17+00:00Added an answer on June 4, 2026 at 7:47 pm
    1. your service name IService1 – this looks like it might in fact be
      the contract. If you are using the normal templates then remove the
      I from IService1

    2. If you are IIS hosting you can remove the address as the location of the .svc file is automatically the address.

    3. The contract needs to be fully qualified including the namespace of the contract interface

    with this in place your metadata should be served from <.svc file location>?wsdl

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to launch the following WCF service: <system.serviceModel> <services> <service name=MTPlatform> <endpoint address=TradingService
<system.serviceModel> <services> <service name=SUR.Core.Service.Implementation.SURDirectoryService behaviorConfiguration=DefaultServiceBehavior> <host> <baseAddresses> <add baseAddress=net.tcp://127.0.0.1:8731/ISURDirectoryService/> </baseAddresses> </host> <endpoint address= binding=netTcpBinding
Below is my app.config <?xml version=1.0 encoding=utf-8 ?> <configuration> <system.serviceModel> <services> <service name=Indexer> <endpoint
I have defined two endpoints in my App.Config file as <system.serviceModel> <services> <service name=HostDirectAddress.ITestService
I have written a WCF service with the following configuration: <system.serviceModel> <services> <service name=SyncService
I'm trying to run a simple WCF Service... My Wcf Service .config: <system.serviceModel> <services>
In my WCF service I have implemented a custom encoder which inherits from System.ServiceModel.Channels.MessageEncoder
If I have a service definition/implementation like this: using System; using System.ServiceModel; namespace aspace.service
I have a the following server side app.config for a WCF service: <system.serviceModel> <bindings>
I have a WCF Service Library exposed through my ASPX site as follows [System.ServiceModel.OperationContract]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.