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