Hi

I'm trying to configure my WCF services to use netNamedPipes.

here is my container config (I've commented out the existing http binding):

            var metadata = new ServiceMetadataBehavior
            {
                HttpGetEnabled = true
            };

            var debug = new ServiceDebugBehavior
            {
                IncludeExceptionDetailInFaults = true
            };

            container.AddFacility<WcfFacility>(f =>
f.Services.AspNetCompatibility =

AspNetCompatibilityRequirementsMode.Required)
                .Install(Configuration.FromAppConfig())
                .Register(
                    Component.For<IServiceBehavior>().Instance(metadata),
                    Component.For<IServiceBehavior>().Instance(debug),
                    Component
                        .For<IAccountService>()
                        .ImplementedBy<AccountService>()
                        .Named("SomeCompany.Services.Account.AccountService")
                        .LifeStyle.Transient
                        .ActAs(new DefaultServiceModel().Hosted().AddEndpoints(
                                       //WcfEndpoint.BoundTo(new
BasicHttpBinding { MaxReceivedMessageSize = int.MaxValue }),
                                       //WcfEndpoint.BoundTo(new
WSHttpBinding(SecurityMode.None) { MaxReceivedMessageSize =
int.MaxValue }).At("ws"),
                                       WcfEndpoint.BoundTo(new
NetTcpBinding()).At("net.tcp://localhost/Account")
                                   )),
                    Component
                        .For<IAccountNetworkService>()
                        .ImplementedBy<AccountNetworkService>()

.Named("SomeCompany.Services.Account.AccountNetworkService")
                        .LifeStyle.Transient
                        .ActAs(new DefaultServiceModel().Hosted()
                                   .AddEndpoints(
                                       WcfEndpoint.BoundTo(new
BasicHttpBinding { MaxReceivedMessageSize = int.MaxValue }),
                                       WcfEndpoint.BoundTo(new
WSHttpBinding(SecurityMode.None) { MaxReceivedMessageSize =
int.MaxValue }).At("ws")
                                   ))

                );


My client has the following:

<endpoint address="net.tcp://localhost/Account"
binding="netTcpBinding"
contract="SonaTribe.Services.Account.Contracts.IAccountService"
name="accountServiceClient"></endpoint>

When I try to access the service I get the following:

No connection could be made because the target machine actively
refused it 127.0.0.1:808


Am I missing something blatant here?

-- 
Cheers,

w://

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to