Bất kỳ ai có thể cho tôi biết lý do tôi gặp lỗi này khi tôi cố thêm dịch vụ của mình không?WCF Test Khách hàng không thể thêm dịch vụ, không thể nhận siêu dữ liệu
Error: Cannot obtain Metadata from http://myserver/myapp . 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://myserver/myapp Metadata contains a reference that cannot be resolved: ' http://myserver/myapp '. 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://myserver/myapp There was an error downloading ' http://myserver/myapp '. The request failed with HTTP status 403: Forbidden.
Cập nhật: Tôi có điểm cuối sau đã có,
<endpoint address="mex"
binding="mexHttpBinding"
name="Metadata"
contract="IMetadataExchange" />
Tôi cũng đã những hành vi dịch vụ thiết lập:
<serviceBehaviors>
<behavior name="myBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
Cố gắng theo dõi các video từ liên kết tôi đã đăng. Họ đã làm việc cho tôi khi tôi gặp lỗi tương tự –