I use Castle.Windsor as a IoC container, and tried to register the
dependencies similar to the way described here:
http://blog.ploeh.dk/CommentView,guid,f1a71969-0584-4a15-9395-9f2ac65f104b.aspx#commentstart
I wrote the next code:

   public class RiverdaleServiceHostfactory :
DefaultServiceHostFactory
    {
        public RiverdaleServiceHostfactory()
            : base(CreateKernel())
        {
        }
        private static IKernel CreateKernel()
        {
            InversionOfControl.RegisterAll();
            InversionOfControl.Container.AddFacility<WcfFacility>();
            return InversionOfControl.Container.Kernel;
        }
    }
It gives me a mistake about datacontracts The contract name
'Riverdale.Api.DataContracts.CustomerInfoType' could not be found in
the list of contracts implemented by the service
'CustomerSearchService'. I checked the attributes, configs, everything
is configured as it should be. It seems the library has considerbaly
changed since the post and know it is not the way to go.

More than that, I've downloaded the 3.0 version of WCF facility and
the demo in there doesn't work on my PC locally saying:

Could not load type 'Castle.Facilities.WcfIntegration.Demo.Global'.

And this is the most killing part. Am I doing something wrong? Should
I do some set-ups for IIS?

What is the best practice to do it? What am I missing?

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