0

ホスティング サーバーに保存されているファイルから Silverlight プロジェクトにサービス参照を追加しようとしています。リンクを入れると、次のエラーが表示されます。

The document at the url http://www.lloydp.co.uk/Test/WcfRectangleService.dll 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 'Data at the root level is invalid. Line 1, position 1.'.
- Report from 'WSDL Document' is 'There is an error in XML document (1, 1).'.
  - Data at the root level is invalid. Line 1, position 1.
- Report from 'XML Schema' is 'Data at the root level is invalid. Line 1, position 1.'.
Metadata contains a reference that cannot be resolved: 'http://www.lloydp.co.uk/Test/WcfRectangleService.dll'.
The content type application/octet-stream of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: 'MZ�

誰が問題が何であるか教えてもらえますか? いずれにせよ、XML ファイルは変更されていません。

前もって感謝します、

ロイド

4

1 に答える 1

1

URLhttp://www.lloydp.co.uk/Test/WcfRectangleService.dllをポイントしています。.dll拡張子に注意してください。これは、サービスの内部コードです。そのため、WebサーバーはXMLドキュメントではなく一連のバイナリコードを返します。

代わりに.svcファイルをポイントします-これはサービスエンドポイントです。

于 2009-11-27T18:49:33.090 に答える