Last post Oct 29, 2009 02:16 PM by bhargava
Oct 28, 2009 03:29 PM|praticalCoder|LINK
Hey Guys n Gals,
I need help, I'm new to the WCF world having recently made the transition from SOAP Webservices.
The WCF service works well when I run in from the VS2008 ASP.NET Development Server i.e. Debug Mode. The problem comes when I try to access the service via IIS.
I've setup a website on my local IIS Webserver hosted on port 8082 (http://localhost:8082) and have created a VirtualDirectory (1.0) that points to the physical directory that contains my WCF Service code. The Website is setup to do ASP.NET 2.0.50727. I can
get to the landing page and also an assortment of .aspx pages but when I try to access the Service.svc, the browser never gets there and just sits idling.
My question is what setup am I missing to get the service to work from inside IIS since I already know it works under the development server.
I'm attaching part of my web.config if that would help.
<service name="Service1" behaviorConfiguration="Service1Behavior">
<!-- Service Endpoints -->
<endpoint address="" binding="wsHttpBinding" contract="IService1">
Upon deployment, the following identity element should be removed or replaced to reflect the
identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<!-- 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 -->
<input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden">
WCF REST Starter Kit
Oct 29, 2009 02:16 PM|bhargava|LINK
1) The following steps need to be performed to make sure that .svc handler is attached to the Website which contains the WCF Service.
2) Run the following command from the command prompt to make sure the WCF service model is registered.
"C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y
(Replace the path accordingly if framework is installed on a different drive)
Let me know if this works..