相关疑难解决方法(0)

Wcf服务中ServiceHost指令中的服务类型问题

我正在开发一个简单的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)

请帮我解决这个问题

wcf servicehost

37
推荐指数
4
解决办法
10万
查看次数

标签 统计

servicehost ×1

wcf ×1