cannot run WCF service in iis
i have stuggling bit to get my first demo service running on my machine, so far i am not successfull.![]()
i am working on windows xp(professional) sp2 (iis 5.1)
my web.config
-
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.serviceModel>
<services>
<!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages -->
<service name="MathService" behaviorConfiguration="MathBehaviour">
<endpoint address="" contract="IMathService" binding="wsHttpBinding"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MathBehaviour">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
-
i have followed the step carefully, in the example provided.
but when i tried to access my service by following url,
-
http://localhost/WCFServiceSample/MathService.svc
-
i get the following
-
<%@ ServiceHost Language="C#" Debug="true" Service="MathService" CodeBehind="~/App_Code/MathService.cs" %>
-
i guess some thing goes wrong here, am i missing any configuration here.
seems my iis does not recognize the .svc, what is the remedy?
thanks in advance

