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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:34:49+00:00 2026-06-13T10:34:49+00:00

I am using a Silverlight application that has net.tcp WCF communications. I would like

  • 0

I am using a Silverlight application that has net.tcp WCF communications. I would like to self host the ClientAccessPolicy.xml within the ServiceHost and the policy file must be on the root, port 80, as per Silverlight net.tcp requirements (TCP port 4502-4534, etc.). My problem is that when my ServiceHost is running it steals port 80 root from IIS and none of my web pages work.

The code to create the policy endpoint looks like:

host.AddServiceEndpoint(typeof(IPolicyGetter), new WebHttpBinding(), "http://localhost/").Behaviors.Add(new WebHttpBehavior());

When the ServiceHost is running then I can see my http://127.0.0.1/ClientAccessPolicy.xml, but all web sites on port 80 stop working – I see the standard WCF “Endpoint not found” web page generated by the Endpoint. When I turn off the ServiceHost then I can see my web site but the ClientAccessPolicy.xml is gone.

I have tried using a complete path for the endpoint URI:

policyUri.Scheme = "http";
policyUri.Port = 80;
policyUri.Query = "ClientAccessPolicy.xml";
host.AddServiceEndpoint(typeof(IPolicyGetter), new WebHttpBinding(), policyUri.ToString()).Behaviors.Add(new WebHttpBehavior());

but this throws an argument exception. Moving the policy to a subdirectory or a different port will not work because Silverlight only looks at port 80 on the root web directory.

Obviously I can just copy the ClientAccessPolicy.xml into the web root directory and disable the policy endpoint. Is there a way to button-down the endpoint so that it only hijacks calls to ClientAccessPolicy.xml but does not steal the entire IIS port 80?

  • 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-13T10:34:50+00:00Added an answer on June 13, 2026 at 10:34 am

    No, you cannot have two processes listening on the same TCP/IP port. If your ServiceHost is listening on port 80, then it is going to be the only process responding to connections on that port.

    Having said that, you can have a “master” process listen on port 80 and redirect connections to “child” processes, but this is beyond the scope and intent of ServiceHost.

    • 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 that communications with an ASP.NET backend through WCF. I
I have been developing a Silverlight application using WCF. The problem is that sometimes
We're developing a ASP.Net Web Application project that has a Silverlight 2.0 component. We've
I have a Silverlight application that has three regions that will host the same
I'm running a Silverlight 4 application that has a WCF service reference to a
I have a Silverlight application that is using a DataGrid. Inside of that DataGrid
I am currently working on an application that allows reverse geocoding using silverlight +
I'm using Silverlight Beta 4 for a LOB application. After finding out today that
I am making an application in Silverlight 3.0. In that application i am using
I am developing an silverlight application using WCF and EF. I am using Database

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.