I need to configure WCF services using file-less activation through code and without the need to add factories under serviceActivations in web.config.
Does anyone have an idea as to if this is possible or how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If you’re on .NET 4, you could use the
ServiceRouteas an alternative, which can be setup totally in code.See Ron Jacobs’ two excellent posts on the topic:
This also works with regular services – not just OData services. Just replace the
DataServiceHostFactoryin Ron’s example with either a regularServiceHostFactory(for SOAP services) or theWebServiceHostFactory(for REST-oriented WCF services)