简体   繁体   English

wcf测试客户端元数据错误

[英]wcf test client metadata error

I am a newbie in WCF and WCFTESTCLIENT. 我是WCF和WCFTESTCLIENT的新手。 I have a project on my desktop PC.It is written by c# and ASP.net MVC and is the core of a multimedia (.MP4 and .MP3) project.(IIS is installed). 我的台式机上有一个项目,它是由c#和ASP.net MVC编写的,是多媒体(.MP4和.MP3)项目(已安装IIS)的核心。

and it should provide our android application with required stream of audio and video. 并且应该为我们的android应用提供所需的音频和视频流。

When I run WCF in VS2015 I encounter the below error and only I have a white page as output! 当我在VS2015中运行WCF时,遇到以下错误,并且只有白色页面作为输出!

error in WCF Test Client: WCF测试客户端中的错误:

1- "Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata. " 1-“添加服务失败。服务元数据可能无法访问。请确保您的服务正在运行并公开元数据。”

2- Also when I run (F5) only I have a blank URL page without any error . 2-同样,当我运行(F5)时,我会有一个空白的URL页面,没有任何错误。

Please let me know what the problem is and how I can solve it? 请让我知道问题是什么以及如何解决?

I appreciate your help in advance. 非常感谢您的帮助。

Maybe check your ServiceBehavior for your endpoint make to make sure that httpGetEnabled is set to true? 也许检查您的ServiceBehavior是否为您的终结点计算机确定httpGetEnabled设置为true?

 <serviceBehaviors>
    <behavior name="yourServiceBehaviorname">
      <serviceMetadata httpGetEnabled="true" />


    </behavior>
  </serviceBehaviors>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM