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

  • SEARCH
  • Home
  • 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 7913989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:58:29+00:00 2026-06-03T13:58:29+00:00

I have two WCF services hosted with a hosting provider. Both service to work

  • 0

I have two WCF services hosted with a hosting provider. Both service to work fine. I can access them from my own computer or even from a website hosted with another provider. The weird part (at least, the part I don’t understand) is; one cannot call the other.

Both services are located in a subfolder of the web root, at the same hierarchical level. Like wwwroot\serviceone and wwwroot\servicetwo. Both are marked as application folder in IIS en both have an almost similar web.config as shown below, only the names differ:

<configuration>
     <system.web>
        <compilation targetFramework="4.0" />
      </system.web>
      <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="servone">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    <services>
      <service name="MyService.ServiceOne" behaviorConfiguration="servone">
        <endpoint address="" binding="basicHttpBinding" contract=" MyService.IServiceOne "/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>
    </services>

  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>

Browsing to the .svc displays the well-known service page with the example code;

class Test
{
    static void Main()
    {
        ServiceOne client = new ServiceOne ();
        // Use the 'client' variable to call operations on the service.
        // Always close the client.
        client.Close();
    }
}

The client has a method named HandleRequest(string str). So in my code (C#) there’s a line like;

client.HandleRequest("blah");

The call doesn’t raise an exception (I can tell because they are catched, handled and written to a database). It’s like the message is sent but never returns.
When I run this service (who calls the other) locally and leave the second on the remote server, all works well.

Obvious it is hard to provide all the details from the hosting party. Unfortunate I don’t have access to an IIS installation to simulate the environment either. So, I’m not expecting an in-depth technical solution based on the little information I can provide. But any comment about how this setup differs from all others might be helpful.

I really appreciate any effort, thanks.


Edit:

The call is made like this:

public bool Send(String str)
{
  bool result = false;
  BasicHttpBinding binding = new BasicHttpBinding();
  EndpointAddress ep = new EndpointAddress("http://www.mydomain.com/ServiceTwo.svc");
  client = new ServiceTwoClient(b, ep);
  //
  try
  {
    result = client.HandleRequest(str);
    client.Close();
    return result;
  }
  catch (Exception x)
  {
    Add2DbLog(x.Message);
    return false;
  }
}
  • 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-03T13:58:30+00:00Added an answer on June 3, 2026 at 1:58 pm

    The domain alias you’re using may not work locally on the server. Log in to that server, launch a web browser, and navigate to the service URL used in your code (http://www.mydomain.com/ServiceTwo.svc). Ensure that you don’t get any error messages.

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

Sidebar

Related Questions

Can we two WCF services where one service contract derives from another and have
I have two Services called TemplateService, TemplateReportService (both defined in one WCF Service Library)
I have done a work which contains two parts WCF service which is hosted
I have a WCF environment hosted on a windows service. I have two hosts
I have two WCF services Exchange1.svc and Exchange2.svc both setup to be RESTful JSON
Scenario I have two WCF Services combined in a single App.Config file. I can't
I'm hosting my first WCF service in IIS. I have two methods, 1 to
I have self hosted net tcp WCF service that exposes two methods and the
I have two websites hosted on the same IIS server. SiteA contains WCF services
I have two wcf services with the same interface hosted in IIS using http

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.