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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:27:22+00:00 2026-05-24T21:27:22+00:00

I am using .net 3.5. and castle 2.5.2. I have a WCF web service.

  • 0

I am using .net 3.5. and castle 2.5.2.

I have a WCF web service.

I am trying to build a client (mvc 2.0 website) that uses castle, to inject the proxy.

So I generated a proxy using svcutil.
I put the proxy in my client website and registered it with the container like so:

container.Register(
            Component.For<IMyWCFServiceProxy>()
                .ImplementedBy<WCFServiceProxy>());

Then injected the proxy interface into my class that calls the service.
All fine so far.

However, when i called the web method on the proxy i got:
“The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. “

So i wondered, do i have to add any more information when i register the client proxy with the container. i.e related to channel state. I cant find any documentation on the setting up the client.

Thanks very 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-05-24T21:27:23+00:00Added an answer on May 24, 2026 at 9:27 pm

    My problem was that I was missing a reference to the end point when i registered the proxy. The service is working now after this change:

        Component.For<IMyWCFServiceProxy>()
                    .ActAs(DefaultClientModel
                               .On(WcfEndpoint.FromConfiguration("wsHttpEndpoint"))).
                    ImplementedBy<MyWCFServiceProxy>());
    

    Although, I have been reading this article over the weekend, and like the look of this.

    http://favcode.net/browse/using_castle_dynamic_proxy_to_create_a_wcf_proxy_via_channelfactory

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

Sidebar

Related Questions

I have a very simple asp.net mvc web app which uses castle active record,
Is is possible to inject IPrincipal using Castle Windsor into my asp.net mvc controller.
I have about 4-6 years .NET experience. Primarly using ASP.NET MVC/Nhibernate/Castle Windsor/MSpec/etc in visual
I'm trying to host a WCF service inside a console app using Castle-Windsor 2.5
I have an ASP.NET MVC application that also employs the typical NHibernate / Castle
I have a C# .Net Web Service. I am trying to use nHibernate to
I'm using ASP.Net MVC (still 1.0 for now) with Castle ActiveRecord and NHibernate.Linq. All
I'm using ASP.NET MVC with Castle ActiveRecord as my persistance layer. I want to
I am playing with Castle activeRecord, and I have succesfully made an asp.net MVC
I am in the start up of a project using ASP.NET MVC and 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.