2014-06-30 14 views
8

Ja próbuje wdrożyć aplikację usług IIS na IIS 8.5, ale za każdym razem, kiedy attemp aby połączyć się z usługą poprzez http://localhost/test/WCFService.svc pojawia się następujący ekran:Wdrażanie WCF w IIS 8.5

enter image description here

Kiedy idę do turn Windows features On or OFF mam następujące:

enter image description here

Moje web.config wygląda następująco:

<?xml version="1.0"?> 
<configuration> 

    <appSettings> 
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> 
    </appSettings> 
    <system.web> 
    <compilation debug="true" targetFramework="4.5" /> 
    <httpRuntime targetFramework="4.5"/> 
    </system.web> 
    <system.serviceModel> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name ="MessageServaceBehavior"> 
      <!-- To avoid disclosing metadata information, set the values below to false before deployment --> 
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/> 
      <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> 
      <serviceDebug includeExceptionDetailInFaults="false"/> 
     </behavior> 
     </serviceBehaviors> 

    </behaviors> 
    <services> 

     <service name ="WCF_Connection.WCFService" behaviorConfiguration="MessageServaceBehavior"> 

     <host> 
      <baseAddresses> 
      <add baseAddress="http://10.0.5.32:58632/WCF_Service/"/> 
      </baseAddresses> 
     </host> 
     <endpoint name ="getMessage" address="" binding="basicHttpBinding" contract="WCF_Connection.IWCFService"/> 
     <!--<endpoint name ="MessgaeServiceMex" address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>-->   

     </service> 
    </services> 

    <protocolMapping> 
     <add binding="basicHttpsBinding" scheme="https" /> 
    </protocolMapping>  
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> 
    </system.serviceModel> 
<system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 

     <!-- To browse web app root directory during debugging, set the value below to true. 
     Set to false before deployment to avoid disclosing web app folder information.--> 

    <directoryBrowse enabled="true"/> 
    </system.webServer> 

</configuration> 

Co powoduje to i jak mogę rozwiązać ten problem?

+0

Spróbuj zainstalować wszystkie funkcje w dół serwis informacyjny hostable rdzeń internetowej Internet Information Service i Internetu skopiuj swoją stronę do Wwwroot folderu –

Odpowiedz

11

Prawdopodobnie brakuje funkcji aktywacji HTTP WCF. Znajduje się on w innej sekcji ekranu funkcji Windows (patrz ekran poniżej) i, o ile mi wiadomo, nie jest włączony domyślnie podczas instalacji IIS.

enter image description here

Powiązane problemy