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 4015358
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:36:34+00:00 2026-05-20T09:36:34+00:00

I wrote the most simple wcf service that have one method // return a+b

  • 0

I wrote the most simple wcf service that have one method

// return a+b
int ICalc::add(int a, int b) 

When I try to access the service through local machine – I get the result with no problem.
But try to access from other machine i cant get the service.

I try to define

<security mode="None"/>

from the client machine.

I try to define web page ‘default.htm’ to see if I can access and see the web page (to be more clear .. I can access and see the default.htm page).

I try to access using the IP and using the machine name – but nothing! Nothing work.

I define my service as WAS.

Someone can help me here ?

Service web.config file: ( 192.168.1.117 is machine ip – but I try also using localhost and machine name .. nothing help )

<system.web>
  <compilation debug="true" targetFramework="4.0" />
  <httpRuntime maxRequestLength="10000000" />
</system.web>
<system.serviceModel>
  <services>
    <service name="ServiceLibrary.ServiceProxy" behaviorConfiguration="ServiceBehavior">
    <endpoint address="" binding="wsHttpBinding" contract="ServiceLibrary.IServiceProxy">
        <identity>
          <dns value="192.168.1.117:50025"/>
        </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    <host>
      <baseAddresses>
        <add baseAddress="http://192.168.1.117:50025/ServiceProxy/" />
      </baseAddresses>
    </host>
  </service>
</services>  
<behaviors>
  <serviceBehaviors>
    <behavior name="ServiceBehavior">
      <serviceMetadata httpGetEnabled="true"/>
      <serviceDebug includeExceptionDetailInFaults="false"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

Client app.config file : (here I also try to use the machine ip and try also use the machine name – I also try to disable the firewall of the client and the server … nothing help)

 <system.serviceModel>
    <bindings>
        <wsHttpBinding>
            <binding name="WSHttpBinding_IServiceProxy" closeTimeout="00:01:00"
                openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                allowCookies="false" >

              <security mode="None"/>

                <readerQuotas maxDepth="32" maxStringContentLength="2147483647"
                    maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
                <reliableSession ordered="true" inactivityTimeout="00:10:00"
                    enabled="false" />
                </binding>
        </wsHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://192.168.1.117/ServiceProxy.svc"
            binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IServiceProxy"
            contract="ServiceReference1.IServiceProxy" name="WSHttpBinding_IServiceProxy">
            <identity>
                <dns value="192.168.1.117" />
            </identity>
        </endpoint>
    </client>
</system.serviceModel>
  • 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-05-20T09:36:34+00:00Added an answer on May 20, 2026 at 9:36 am

    I added the port in the client config file – but its still does not help and i still fail to open the the service.

    ( fail in the r.open()

    ServiceProxyClient r = new ServiceProxyClient();
    r.Open();
    

    )

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

Sidebar

Related Questions

I wrote simple load testing tool for testing performance of Java modules. One problem
I have wrote a simple php script which reads an IMAP email account and
I wrote a simple Java application that reads and writes journals (encrypted text files)
I have a script that appends some rows to a table. One of the
In the past I wrote most of my unit tests using C# even when
I was wondering when most people wrote their unit tests, if at all. I
It seems to me that most people write their tests against in-memory, in-process databases
I'm trying to write a query that will pull back the two most recent
I wrote a simple batch file as a PowerShell script, and I am getting
Usually I would look at writing a Windows Service to manage tasks that aren't

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.