locked
Getting Started Sample Question 2 RRS feed

  • Question

  • Hi,

    Well, thanks to everyone's help, I think I got svc file working.(I'm trying to use the Getting Started sample that came with Windows SDK, I really want to run the IIS host sample and I think the Getting Started Sample is supposed to run on IIS)

    I'm using XP professional as OS.

    When I type in http://localhost/servicemodelsamples/service.svchttp://localhost/servicemodelsamples/service.svc

    I get a page that says

    <%@ServiceHost language=c# Debug="true" Service="Microsoft.ServiceModel.Samples.CalculatorService" %>

    So I'm guessing svc file is working fine, but then when I run the client.exe, the program shuts down and I get a prompt if I wanna report the error.

    I'm just using the Getting Started sample that came with Windows SDK. If anyone has a solution for me, or knows how to debug the situation, please let me know. I'm really frustrated with this sample for three weeks now. I really want to move on.

    Thank you.

    Monday, June 26, 2006 6:28 AM

Answers

  • Hi,

    It seems that there is not HttpHandler that relates to ".svc" files in your IIS.

    Please go to the directory: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG, open the web.config file, and search for the following:
    "<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />"

    If you cannot locate this line, please reinstall Winfx Runtime again.

    Hope that helps.

    Guy Burstein

    http://blogs.microsoft.co.il/blogs/bursteg/

     

    Monday, June 26, 2006 8:58 AM

All replies

  • What is the exception you get when you run the client in debug mode?
    Monday, June 26, 2006 7:55 AM
  • Hi,

    It seems that there is not HttpHandler that relates to ".svc" files in your IIS.

    Please go to the directory: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG, open the web.config file, and search for the following:
    "<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />"

    If you cannot locate this line, please reinstall Winfx Runtime again.

    Hope that helps.

    Guy Burstein

    http://blogs.microsoft.co.il/blogs/bursteg/

     

    Monday, June 26, 2006 8:58 AM