WCF Erreurs à l'aide de WCFTestClient pour tester un simple Service Web WCF

Quand j'essaie de tester l'AutoLotWCFService à l'aide de "wcftestclient", j'obtiens l'erreur suivante. Ce que je fais mal? Toute la perspicacité de l'aide. C'est un simple Service Web qui a wshttpbinding avec l'interface du contrat et la mise en œuvre dans le service. Ici, c'est le long message d'erreur: Le Web.Fichier de configuration est de 2 points de terminaison d'un Service Web lui-même et les autres pour metaDataExchange. Son tous un peu par défaut des trucs. Je peux inclure le code si besoin -, il semble que je ne peut pas joindre des fichiers ici.


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.'.

Pouvez-vous inclure les sections de configuration concernant le service? Difficile à dire sans que ce qui se passe.
Le sevice contrat (et toutes les données des contrats qui sont utilisés) serait aussi utile.
Ajoutez ceci à votre serveur web config sous <comportement> spécifié, puis fournir la véritable erreur: <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true"/>

OriginalL'auteur | 2008-10-09