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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:40:38+00:00 2026-06-04T17:40:38+00:00

I’m having real trouble with the WCF Facility provided by Castle Windsor. I’m not

  • 0

I’m having real trouble with the WCF Facility provided by Castle Windsor. I’m not finding appropriate documentation which could point me to some examples with the current version of WCF Facility.

Following is my scenario: I want to write a WCF service, exposed over TCP which will be hosted by a Windows Service.

I’m falling short of how to configure the WCF facility, where to configure it whether it should be in the WCF service or in the windows service host.

Also how would I configure the WCF facility when my service end points are declared in the WCF config file?

Can someone please help? A link would be much appreciated, although I could not find much.

  • 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-04T17:40:41+00:00Added an answer on June 4, 2026 at 5:40 pm

    This is an example/walk-through of setting up a (contrived) service.

    For my example, there is a service contract WindsorWCF.IMyService and a service called WindsorWCF.MyService. I’ve chosen to configure the service with a TCP endpoint in the app config as follows:

    <system.serviceModel>
      <services>
        <service name="WindsorWCF.MyService">
          <endpoint name ="IMyService_Endpoint" address="net.tcp://localhost:9876/MyService" binding="netTcpBinding" contract="WindsorWCF.IMyService" />
        </service>
      </services>
    </system.serviceModel>
    

    Next, add an Window config (XML) file to your service project, and add a component to it:

    <configuration>
      <components>
        <component id="MyService" service="WindsorWCF.IMyService, WindsorWCF" type="WindsorWCF.MyService, WindsorWCF" />
      </components>
    </configuration>
    

    In the service host application itself, I’ve added the following code (I used a console application when I wrote the code, but the idea is the same):

    static void Main(string[] args)
    {
        InitWindsor();
        var host = new DefaultServiceHostFactory().CreateServiceHost("MyService", new Uri[0]);
        host.Open();
        Console.ReadLine();
    }
    
    static IWindsorContainer Container { get; set; }
    private static void InitWindsor ()
    {
        Container = new WindsorContainer().AddFacility<WcfFacility>().Install(Configuration.FromXmlFile("windsor.config"));
    }
    

    That’s it for the example – I trust it makes sense.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I need a function that will clean a strings' special characters. I do NOT

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.