WCF服务无法激活 - 服务属性值

时间:2014-12-18 22:03:42

标签: c# wcf http service

我在Visual Studio 2012的项目中有以下服务指令:

<%@ ServiceHost Language="C#" Debug="true" Service="TMO.SA.VMS.Library.ServiceContracts.VMSService" %>

我可以清楚地看到TMO.SA.VMS.Library项目,以及ServiceContracts文件夹和实际的c#服务文件。然而,当我致电该服务时,我收到以下错误:

The type 'TMO.SA.VMS.Library.ServiceContracts.VMSService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

我从测试项目中得到此错误:

The requested service, 'http://njpara-lp4306p5.gsm1900.org/TMO.SA.VMS.Service/VMSService.svc' could not be activated. See the server's diagnostic trace logs for more information.

我在测试项目的app.config中的端点。

<endpoint address="http://njpara-lp4306p5.gsm1900.org/TMO.SA.VMS.Service/VMSService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IVMSService" contract="WCF_VMSService.IVMSService" name="BasicHttpBinding_IVMSService"/>

我在我的智慧结束,因为我不记得对服务或我称之为服务的方式做了任何改变。关于可能导致这种情况的任何建议都是最受欢迎的。

0 个答案:

没有答案
相关问题