WCF:下载MetaData时出错 [英] WCF: Error Downloading MetaData
问题描述
我有一个带有Silverlight 3应用程序的现有项目。我创建了一个 SALESservice.svc
。这工作正常。现在我将另一个 TARGETservice.svc
添加到我的项目
并重建我的整个项目,但是当我尝试将服务引用添加到Silverlight时我收到以下错误:
I have an existing project with a Silverlight 3 app. I created a SALESservice.svc
. This is working fine. Now I added another TARGETservice.svc
to my project
and rebuilt my entire project but when I am trying to add the service reference in to the Silverlight app I get the following error:
There was an error downloading metadata from the address. Please verify that you have entered a valid address.
我没有在 ISALESservice.svc
中编写任何代码, ITARGETservice.svc
。我写的是 SALESservice.svc.cs
和 TARGETservice.svc.cs
文件。
导致错误吗?
SALESservice.svc
正在运行。我没有在web.config文件中添加任何代码。
问候,
JN
[orig。标题]
如何解决从VS 2008中的WCF中的地址错误下载元数据时出错?
I didn't write any code in ISALESservice.svc
and ITARGETservice.svc
. I have written in SALESservice.svc.cs
and TARGETservice.svc.cs
files.
Is this causing the error?
SALESservice.svc
is working. I didn't add any code in web.config file.
Regards,
JN
[orig. title]
how can I solve There was an error downloading metadata from the address error in WCF In VS 2008?
推荐答案
可能由于添加服务引用时使用的端口或服务名称不同而导致。
确保添加服务引用时的端口或服务名称相同
It may cause due to different port or service name used when adding the service reference.
Make sure the port or service name same when the time of being added service reference
plz检查已创建和现有服务的端点和属性,
检查与wcf服务相关的所有设置然后部署&consume
plz check end points & attributes for the created & existing services,
check all the settings related to wcf services then deploy & consume
解决方案7
我使用的是从WCF调用返回的类,但没有正确的与其关联的数据合同或数据成员装饰或其属性。一经纠正,它就会正常更新。
Solution 7
I was using a class that I was returning from a WCF call that did not have the correct Data Contract or Data Member decorations associated with it or it's properties. As soon as this was corrected, it updated normally.
这篇关于WCF:下载MetaData时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!