При запуске клиента WCF Test я получаю сообщение об ошибке:службы WCF не Endpoint
Error: Cannot obtain Metadata from localhost:52875/ControllersInfo.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.
Metadata contains a reference that cannot be resolved: localhost:52875/ControllersInfo.svc'. There was no endpoint listening at localhost:52875/ControllersInfo.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Вот мой web.config
файл
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>
</system.web>
<system.serviceModel>
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint helpEnabled="true" automaticFormatSelectionEnabled="true" />
</webHttpEndpoint>
</standardEndpoints>
<services>
<service name="dev_FineReceiptsService.ControllersInfo">
<endpoint kind="webHttpEndpoint" contract="dev_FineReceiptsService.IControllersInfo" />
</service>
</services>
</system.serviceModel>
<connectionStrings>
<add name="FineReceiptsTestEntities" connectionString="metadata=res://*/FineTest.csdl|res://*/FineTest.ssdl|res://*/FineTest.msl;provider=System.Data.SqlClient;provider connection string="Data Source=msdev01;Initial Catalog=FineReceiptsTest;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration>
Может кто-нибудь сказать мне, что я сделал не так?
Я попытался найти похожий вопрос, но никто из них не помог мне.
Как я понимаю, я только проверил Service неправильно, поэтому у меня нет ошибки в службе, я? Потому что в локальном браузере работает нормально. –
@ Big.Child: вы определенно используете инструмент тестирования, который ** не работает ** для вашего сервиса. У вас есть проблемы - у меня нет возможности сказать ..... но вы не можете использовать тестовый клиент WCF для служб WCF на основе REST. –