WCF Service not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Ross
    New Member
    • Jan 2007
    • 119

    WCF Service not working

    I am trying to test out soem stuff with a WCF web service.
    The service works fine if I open it as a project in Visual Studio and click run.
    If I open it as a website (by selecting it in the local iis) I get this

    Code:
    <% @ServiceHost Language=VB Debug="true" Service="SqlDataService" CodeBehind="~/App_Code/Service.vb" %>
    every time! I get the same thing if I try to navigate to the site in the browser.
    I have juts set it up as a vistrual directory like any other in IIS.

    Is there something else I need to do or change?

    All the examples I can find online just run the project through VS which is useless if you actually want to use the service.
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    Whats the exact exception you got ?

    Comment

    • Bob Ross
      New Member
      • Jan 2007
      • 119

      #3
      no exception it simply ouputs the contents of the svc file as shwon above.
      I have done more research and I think it is because I am running windows xp.
      Can you host a WCF service in IIS 5.1?
      I know you can build your own app to run the service but this seem very complicated.

      Also can you run a WCF service in windows 2000?

      Comment

      • radcaesar
        Recognized Expert Contributor
        • Sep 2006
        • 759

        #4
        Since you are only consuming, you can. The line it shows is the Entry point of your service consumption. Just debug and see what had happens.

        Have you added the Conf settings of service in the .config file ?

        :)

        Comment

        • sachin more
          New Member
          • Apr 2007
          • 1

          #5
          Hello,

          I am got the same problem. It just print the contents from .svc file.

          Comment

          Working...