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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:59:08+00:00 2026-05-14T23:59:08+00:00

I created a WCF service which is hosted in windows service. I created a

  • 0

I created a WCF service which is hosted in windows service. I created a proxy using svcutil
“svcutil.exe http://localhost:8000/ServiceModelSamples/FreeServiceWorld?wsdl”

It generated an output.config file and proxy class.

The output.config has the following element

<client>
    <endpoint address="http://localhost:8000/ServiceModelSamples/FreeServiceWorld"
        binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IWeather"
        contract="IWeather" name="WSHttpBinding_IWeather">
        <identity>
            <servicePrincipalName value="host/sdfsf.sdfs.com" />
        </identity>
    </endpoint>
 </client>

I created a website (as client) and added a new C# file (MyFile.cs) into it. I copied the contents of the proxy class into MyFile.cs.
[The output.config is not copied to the web site]

In the code behnid of aspx, I am using the following code
WeatherClient client= new WeatherClient(“WSHttpBinding_IWeather”);

It throws an exception as “Could not find endpoint element with name ‘WSHttpBinding_IWeather’ and contract ‘IWeather’ in the ServiceModel client configuration section.”

Could you please help me to understand the missing link here?

  • 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-14T23:59:08+00:00Added an answer on May 14, 2026 at 11:59 pm

    You need to add the elements in output.config to the web.config of the web site for the client to know where to look for the service. If the client isn’t running on the same machine as the service you will need to exchange localhost for the IP address or host name of the machine running the service.

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

Sidebar

Related Questions

I have created a WCF service which is hosted on a windows service over
I created a WCF service that uses TagLib# ( http://developer.novell.com/wiki/index.php/TagLib_Sharp ) which relies on
I'm new to WCF. I created a data service which is hosted in an
I'm building a WCF-Service which is hosted in a windows service . The WCF-Service
I am a WCF / Security Newb. I have created a WCF service which
I have created a simple wcf service which used the WCF Service Library template.
I created a WCF service, which provides the following response to my POST operation:
I have created a WCF service for uploading images , which accepts System.IO.Stream as
I have a WCF service which is hosted on IIS6 on a Win2003 SP2
My Application while installing will create and run a wcf service hosted on windows

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.