cannot run WCF service in iis

hi dudes,

i have stuggling bit to get my first demo service running on my machine, so far i am not successfull.Sad

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

[1996 byte] By [kbird] at [2008-1-4]
# 1

Hi,

It is a reported problem, sometimes, the svc handler is not registered correctly in IIS. You can find the solution in this post.

http://blogs.msdn.com/martinv/archive/2006/09/11/749388.aspx

Regards,

Pablo.

PabloCibraro at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2
thanks pablo,

refreshing iis metabase helped me!

kbird at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified