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

后端 未结 14 1171
梦如初夏
梦如初夏 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:18

    I changed the output path of the service. it should be inside bin folder of the service project. Once I put the output path back to bin, it worked.

    0 讨论(0)
  • 2020-12-24 12:24

    In my case I did a "Convert to application" to the wrong folder on iis. My application was set in a subfolder of where it should have been.

    0 讨论(0)
  • 2020-12-24 12:24

    I had this error when I had the current build configuration in Visual Studio set to something other than Debug.

    0 讨论(0)
  • 2020-12-24 12:27

    Turns out that the Eval.svc.cs needed its namespace changed to EvalServiceLibary, rather than EvalServiceSite.

    0 讨论(0)
  • 2020-12-24 12:27

    I also had same problem. Purposely my build output path was "..\bin" and it works for me when I set the build output path as "\bin".

    0 讨论(0)
  • 2020-12-24 12:29

    Faced this exact issue. The problem resolved when i changed the Service="Namespace.ServiceName" tag in the Markup (right click xxxx.svc and select View Markup in visual studio) to match the namespace i used for my xxxx.svc.cs file

    0 讨论(0)
提交回复
热议问题