Hi People,

I'm trying to create a tcp mex end point, but just cant quite figure
it out:

I have looked at the unit tests to figure out how to create the
service which works but I can't create a client due to complaints of
there bing no meta data end point:

What I have so far:

            using (windsorContainer
            .AddFacility<WcfFacility>(f => f.CloseTimeout =
TimeSpan.Zero)
            .Register(
                Component.For<ServiceHostListener>(),
                Component.For<NetDataContractFormatBehavior>(),
                Component.For<IApplicationService>
().ImplementedBy<ApplicationService>()
                    .Named("Operations")
                        .ActAs(new DefaultServiceModel().AddEndpoints
                        (
                            WcfEndpoint.BoundTo(new NetTcpBinding
{ PortSharingEnabled = false }).At("net.tcp://localhost/
ApplicationService")),
                            WcfEndpoint.BoundTo(new NetTcpBinding
{ PortSharingEnabled = false }).At("mex")
                        )
                    )
                )
            {
                try
                {
                    // The service can now be accessed.
                    Console.WriteLine("The service is ready.");
                    Console.WriteLine("Press <ENTER> to terminate
service.");
                    Console.ReadLine();
                }
                catch (TimeoutException timeProblem)
                {
                    Console.WriteLine(timeProblem.Message);
                    Console.ReadLine();
                }
                catch (CommunicationException commProblem)
                {
                    Console.WriteLine(commProblem.Message);
                    Console.ReadLine();
                }
            }

Any ideas what I'm doing wrong?

Thanks in advance!
Maxus

--~--~---------~--~----~------------~-------~--~----~
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