0
ServiceActivationException:由于编译期间出现异常,无法激活服务'//Service.svc'。异常消息是:没有提供服务的基地址。至少提供一个基地址。WCF激活异常 - 未提供服务的基地址
我已经在web.config
<system.serviceModel>
<services>
<service name="WFService.Service1" behaviorConfiguration="WFService.Service1Behavior">
<endpoint name="json" address="http://localhost:3003/WFServiceHost/Service.svc/json" binding="webHttpBinding" bindingConfiguration="webHttpBindingConfig" contract="WFService.IService" behaviorConfiguration="WFServiceJsonEndpointBehavior"/>
<host>
**<baseAddresses>
<add baseAddress="http://localhost:3003/WFServiceHost/Service.svc"/>
</baseAddresses>**
</host>
</service>
</services>
提供基址service.svc - 我有厂= “System.ServiceModel.Activation.WorkflowServiceHostFactory”
任何想法,什么样的分辨率它?
肯定。我会尝试。你使用的是.net 4.0吗?如果是这样,你可以发布示例service.svc行吗? – Mutant 2012-04-09 18:25:39
它不能正常工作。即使使用service.svc,它也不应该说没有提供基地址。由于地址仍然存在错误!异常 - [InvalidOperationException:未提供服务的基地址。至少提供一个基地址。 ] System.ServiceModel.Activation.WorkflowServiceHostFactory.GetTypeFromString(字符串typestring,设定乌里[] baseAddresses)255471 System.ServiceModel.Activation.WorkflowServiceHostFactory.CreateServiceHost(字符串constructorString,乌里[] baseAddresses)118 System.ServiceModel.HostingManager。 CreateService(String normalizedVirtualPath) – Mutant 2012-04-09 19:38:21