add WCF service to IIS 6.0/Windows 2003

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rimonmina
    New Member
    • Jul 2007
    • 5

    add WCF service to IIS 6.0/Windows 2003

    I have created a WCF service in vs 2005
    I created a virtual directory for the service in IIS 6.0
    When test the service in internet browser, I expect to see the service metadata. instead i see the contents of .svc file.
    Any help to resolve this problem is truly appreciated.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Here is an article that may help:
    Read Configuration Data from Hosted WCF Services

    Comment

    • rimonmina
      New Member
      • Jul 2007
      • 5

      #3
      Originally posted by kenobewan
      Here is an article that may help:
      Read Configuration Data from Hosted WCF Services
      Thank you for replay
      I read the article. i may not gave the correct description of the problem. Anyhow, I create a console application as a client to this service. I am getting the following error msg when i am adding service reference. It soud that the machine doesn't recognize this as a service. I appreciate any help in this issue

      C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\s vcutil.exe /noLogo /s /d:"C:\Documen ts and Settings\IElser afi\Local Settings\Temp\3 \r2tgltay.hrb" /config:"C:\Docu ments and Settings\IElser afi\Local Settings\Temp\3 \r2tgltay.hrb\n ewapp.config" /mergeConfig /out:"CimsEmploy eesService.vb" /language:vb /n:*,CimsEmploye esService "http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc"
      Attempting to download metadata from 'http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc' using WS-Metadata Exchange or DISCO.
      Microsoft (R) Service Model Metadata Tool
      [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.30]
      Copyright (c) Microsoft Corporation. All rights reserved.

      Error: Cannot obtain Metadata from http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc


      If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.co m/fwlink/?LinkId=65455.


      WS-Metadata Exchange Error
      URI: http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc

      Metadata contains a reference that cannot be resolved: 'http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc'.

      The remote server returned an unexpected response: (405) Method Not Allowed.

      The remote server returned an error: (405) Method Not Allowed.

      If you would like more help, type "svcutil /?"
      HTTP GET Error
      URI: http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc

      The document at the url http://localhost/CimsEmployees/CimsEmployeesSe rvice.svc was not recognized as a known document type.
      The error message from each known type may help you fix the problem:
      - Report from 'DISCO Document' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.
      - Report from 'WSDL Document' is 'There is an error in XML document (1, 2).'.
      - Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.
      - Report from 'XML Schema' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.

      Comment

      Working...