Problem with type of service in ServiceHost directive in wcf service <p>I am developing a simple wcf service for test. When I test this service with my local IIS 7.5, then it works properly. But when I host it in web IIS, I receive this error: </p> <blockquote> <p>The type 'WcfServiceLibrary1.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.</p> </blockquote> <p>And my ServiceHost is: </p> <pre><code>&lt;%@ ServiceHost Language="C#" Debug="true" Service="WcfServiceLibrary1.Service1" %&gt; </code></pre> <p>Please help me resolve this problem</p>