I need help, I'm new to the WCF world, having recently migrated from SOAP Webservices.
The WCF service works well when I start the VS2008 ASP.NET Development Server, that is, debug mode. The problem occurs when I try to access the service through IIS.
I installed the website on my local IIS web server hosted on port 8082 ( http: // localhost: 8082 ) and created VirtualDirectory (1.0) which points to the physical directory containing my WCF service code. The website is configured on ASP.NET 2.0.50727. I can get to the landing page, as well as from the assortment of .aspx pages, but when I try to access Service.svc, the browser never gets there and just sits idle.
http:
My question is what kind of configuration I am missing to get the service to work from within IIS, since I already know that it works under the development server.
I am attaching part of my web.config if this helps.
<system.serviceModel>
<services>
<service name="Service1" behaviorConfiguration="Service1Behavior">
<endpoint address="" binding="wsHttpBinding" contract="IService1">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Service1Behavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
source
share