我正在开发一个简单的wcf服务进行测试.当我使用本地IIS 7.5测试此服务时,它可以正常工作.但是当我在Web IIS中托管它时,我收到此错误:
无法找到作为ServiceHost指令中的Service属性值提供的类型'WcfServiceLibrary1.Service1',或者在配置元素system.serviceModel/serviceHostingEnvironment/serviceActivations中提供的类型'WcfServiceLibrary1.Service1'.
我的ServiceHost是:
<%@ ServiceHost Language="C#" Debug="true" Service="WcfServiceLibrary1.Service1" %>
Run Code Online (Sandbox Code Playgroud)
请帮我解决这个问题