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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:16:59+00:00 2026-05-17T01:16:59+00:00

I have a IIS hosted service http://localhost/someProject/services/myservice.svc . Is it possible to somehow make

  • 0

I have a IIS hosted service http://localhost/someProject/services/myservice.svc . Is it possible to somehow make say http://locahost:9705 point to it? How do I set this up? It seems to be pretty straightforward with a Windows Service hosted WCF service, but I cannot figure how to accomplish this when using .svc files and IIS. In the app.config of a Windows Service I just add a host node…

<host>
  <baseAddresses>
   <add baseAddress="net.tcp://localhost:9705"/>
  </baseAddresses>
</host>

however when I do the same thing in an IIS hosted svc web.config

<host>
  <baseAddresses>
     <add baseAddress="http://localhost:9705"/>
  </baseAddresses>
</host>

I browse to http://localhost:9705 and I get an IE error cannot display the webpage etc… In the windows hosted services I’m able to browse to the page, although not in this example as I’m using net.tcp, but with other services, it works. What am I doing wrong here? Is this even possible? Please point me in the right direction. Thanks for any tips and/or help.

Cheers,
~ck in San Diego

  • 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-17T01:16:59+00:00Added an answer on May 17, 2026 at 1:16 am

    If you host in IIS, it’s IIS that controls where the service is located. You cannot override the IIS settings – if your *.svc file is located under http://localhost/someproject/services/myservice.svc, then that’s your service address. Any <baseAddress> settings in your web.config file are ignored and useless.

    So either you can configure this in IIS, or you have to switch to self-hosting your WCF service in e.g. a Windows Service or a console app or something.

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

Sidebar

Related Questions

I have a Silverlight application using a WCF service hosted in IIS. I make
I have created a reference to an IIS hosted WCF service in my ASP.NET
I have a WCF service hosted in IIS. The intention is for clients to
I have a .net web-service hosted in IIS 6.0 that periodically fails with an
I have a WCF service which will be hosted under IIS. Now I have
I have a WCF service, hosted in IIS 7.0 that needs to run database
I have an IIS hosted WCF service (configured as described in this blog post
I have a WCF .svc file hosted in IIS. I want to use basicHTTP
I have a WCF service hosted in IIS 5.1 on my development XP machine.
I have a wcf service hosted in iis. The endpoint uses wsHttpBinding. I have

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.