Connecting Tech Pros Worldwide Forums | Help | Site Map

add WCF service to IIS 6.0/Windows 2003

Newbie
 
Join Date: Jul 2007
Posts: 5
#1: Aug 22 '07
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's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Aug 22 '07

re: add WCF service to IIS 6.0/Windows 2003


Here is an article that may help:
Read Configuration Data from Hosted WCF Services
Newbie
 
Join Date: Jul 2007
Posts: 5
#3: Aug 22 '07

re: add WCF service to IIS 6.0/Windows 2003


Quote:

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\svcutil.exe /noLogo /s /d:"C:\Documents and Settings\IElserafi\Local Settings\Temp\3\r2tgltay.hrb" /config:"C:\Documents and Settings\IElserafi\Local Settings\Temp\3\r2tgltay.hrb\newapp.config" /mergeConfig /out:"CimsEmployeesService.vb" /language:vb /n:*,CimsEmployeesService "http://localhost/CimsEmployees/CimsEmployeesService.svc"
Attempting to download metadata from 'http://localhost/CimsEmployees/CimsEmployeesService.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/CimsEmployeesService.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.com/fwlink/?LinkId=65455.


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

Metadata contains a reference that cannot be resolved: 'http://localhost/CimsEmployees/CimsEmployeesService.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/CimsEmployeesService.svc

The document at the url http://localhost/CimsEmployees/CimsEmployeesService.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.'.
Reply


Similar IIS / Microsoft Internet Information Services bytes