WCF Service, the type provided as the service attribute values…could not be found

后端 未结 14 1178
梦如初夏
梦如初夏 2020-12-24 11:44

When I right click on Eval.svc within Visual Studio 2012 and view in browser, I get the following -

The type \'EvalServiceLibary.Eval\',

14条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 12:17

    Change the following line in your Eval.svc file from:

    <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.Eval" %> 
    

    to:

    <%@ ServiceHost Language="C#" Debug="true" Service="EvalServiceLibary.EvalService" %>
    

提交回复
热议问题