Hi, I want to setup the extensions for my DefaultServiceModel programatically, because they use other components which I register in the container (hibernate stuff & custom database role provider).
If I register a ServiceAuthorizationBehavior I get an exception (System.ArgumentException: The value could not be added to the collection, as the collection already contains an item of the same type: 'System.ServiceModel.Description.ServiceDebugBehavior'. This collection only supports one instance of each type.). The reason for this is the ServiceHost class registers some default behaviors ( http://stackoverflow.com/questions/2273100/wcf-servicehost-already-has-5-behaviors ). How can I get the created DefaultServiceHost instance in order to modify the default behaviors? Is there a way to hook up with the DefaultServiceHostFactory? Thanks! Martin -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/castle-project-users. For more options, visit https://groups.google.com/groups/opt_out.
