Cuando intento probar el servicio AutoLotWCFS utilizando "wcftestclient", aparece el siguiente error. ¿Qué estoy haciendo mal? Cualquier idea ayudará. Este es un servicio web simple que tiene wshttpbinding con contrato de interfaz y la implementación en el servicio. Aquí está el mensaje de error largo: El archivo Web.Config tiene 2 puntos finales, uno para el servicio web y otro para metaDataExchange. Es prácticamente todo lo predeterminado. Puedo incluir el código si es necesario, parece que no puedo adjuntar archivos aquí.WCF Errores al usar WCFTestClient para probar un servicio web de WCF simple
Error: Cannot obtain Metadata from http://localhost/AutoLotWCFService/Service.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/AutoLotWCFService/Service.svc
Metadata contains a reference that cannot be resolved: 'http://localhost/AutoLotWCFService/Service.svc'.
The remote server returned an unexpected response: (405) Method not allowed.
The remote server returned an error: (405) Method Not Allowed.
HTTP GET Error URI: http://localhost/AutoLotWCFService/Service.svc
The document at the url http://localhost/AutoLotWCFService/Service.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.'.
¿Puede incluir las secciones de configuración relacionadas con el servicio? Difícil de decir sin eso lo que está pasando. – Bryant
El contrato de servicio (y cualquier contrato de datos que se use) también sería útil. –
Agregue esto a su configuración web del servidor bajo especificado, luego proporcionará el error real: –