Publish WCF Service.NET 3.5 on IIS

I have a problem publishing a WCF service in IIS. I think the problem is in the configuration (web.config). This section is myModel:

<system.serviceModel> <services> <service name="rajon_wcf_service.Service1" behaviorConfiguration="rajon_wcf_service.Service1Behavior"> <!-- Service Endpoints --> <endpoint address="" binding="wsHttpBinding" contract="rajon_wcf_service.IService1"> <!--          ,   ,     .     WCF    . --> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> </service> </services> <behaviors> <serviceBehaviors> <behavior name="rajon_wcf_service.Service1Behavior"> <!--      ,    FALSE         --> <serviceMetadata httpGetEnabled="true"/> <!--         ,    TRUE.     FALSE,       --> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> 

When I put the URI: http: //localhost/KOMPLAT/Service1.svc , I get the error message: HTTP 404.17 - Not Found

KOMPLAT is the name of my application in IIS. Thanks.

+4
source share
1 answer

I FOUND!

The problem was with Windows features!

Go to the Windows Properties section () and check: HTTP Activation for Windows Communication Foundation and check Activation without HTTP Activation of Windows Communication Foundation. It's all. enter image description here

+4
source

Source: https://habr.com/ru/post/1381428/


All Articles