「wcftestclient」を使用して AutoLotWCFService をテストしようとすると、次のエラーが発生します。私は何を間違っていますか?どんな洞察も役に立ちます。これは、インターフェイス コントラクトとサービス内の実装を備えた wshttpbinding を持つ単純な Web サービスです。長いエラー メッセージは次のとおりです。Web.Config ファイルには 2 つのエンドポイントがあります。1 つは Web サービス自体用で、もう 1 つは metaDataExchange 用です。そのすべてはほとんどデフォルトのものです。必要に応じてコードを含めることができます - ここにファイルを添付できないようです。
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.'.