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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:15:16+00:00 2026-06-05T05:15:16+00:00

I have simple wcf service with basicHttpBindings and want to host it on IIS.

  • 0

I have simple wcf service with basicHttpBindings and want to host it on IIS.

but when I’m specifying
<endpoint address="/myAddress" binding="basicHttpBinding" contract="Wcf.Contracts.IPublicService"/>
myAddress is ignored. In other words I’m expecting it creates my service endpoint sth like this localhost:1111/myaddress/PublicService.svc, but it creates endpoint simply by combining localhost and PublicService.svc – localhost:1111/publicservice.svc.

why I need?
I have some other services hosted in project and want to create each of them with different url after localhost.(I don’t want to move them to different folder).

I’ve googled and discovered that host base address is ignored when hosting on IIS, is this true for endpoint addresse too?

thanks in advance

<service name="Wcf.Services.AdminService">
    <endpoint address="/address" binding ="basicHttpBinding" contract="Wcf.Contracts.IAdminService"/>
    <endpoint address="mex" binding ="mexHttpBinding" contract="IMetadataExchange"/>
  </service>
  <service name="Wcf.Services.PublicService">
    <endpoint address="/address1" binding="basicHttpBinding" contract="Wcf.Contracts.IPublicService"/>
    <endpoint address="mex" binding="basicHttpBinding" contract="IMetadataExchange"/>
  </service>
  • 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-05T05:15:18+00:00Added an answer on June 5, 2026 at 5:15 am

    Assuming the base address of your service is http://localhost:1111/PublicService.svc, specifying the address="/myAddress" attribute would cause that endpoint’s address to become http://localhost:1111/PublicService.svc/myAddress. The endpoint’s relative path comes after the service address.

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

Sidebar

Related Questions

I have a simple WCF Web service. It's hosted on IIS under the default
I have a simple WCF Data Services service and I want to expose a
I have a wcf service deployed on IIS with basicHttpBinding and aspNetCompatibilityEnabled=true I have
I have a simple WCF service hosted in IIS7.5 exposed over a wsHttp binding
I have a simple WCF service (hosted as its own site in IIS). It
I have a simple WCF service hosted in IIS7 using the HTTP protocol. The
We have a simple WCF service that is tagged with InstanceContextMode = Single and
I have a very simple WCF service running that has a single method that
I have written a simple WCF service that accepts and stores messages. It works
I have written a very simple WCF service, that worked fine (code below), then

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.