You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0

You are developing a custom service host for a Windows Communication Foundation
(WCF) service. The service host is named MovieServiceHost. You need to deploy the
service with the custom service host in Microsoft Internet Information Services (IIS) 7.0.
What should you do?

You are developing a custom service host for a Windows Communication Foundation
(WCF) service. The service host is named MovieServiceHost. You need to deploy the
service with the custom service host in Microsoft Internet Information Services (IIS) 7.0.
What should you do?

A.
Create a factory for the custom service host. Name the factory MovieServiceHostFactory.
In the .svc file, add the following line. <%3 ServiceHost Service=”MovieServiceHostFactory”
Language=”VB”%>

B.
Make sure that the service class has a default constructor. Add a public read-only
property with the name ServiceHost that returns an instance of the MovieServiceHost class.

C.
Create a factory for the custom service host. Name the factory MovieServiceHostFactory.
In the web.config file, add the following attribute to the <add> element within the
<serviceActivations> element, factory=”HovieServiceHostFactory”

D.
Decorate the custom service host class with the following line.
<System.ServiceModel.Activation.ServiceActivationBuildProvider()>



Leave a Reply 0

Your email address will not be published. Required fields are marked *