wcf - 无法引用 AppFabric 上托管的 WCF Web 服务的 WSDL

标签 wcf wsdl appfabric

我开发了一个 WCF 服务,在 Visual Studio 2010 中,我可以毫无问题地导入 WSDL。在我将它部署到 AppFabric 之后,我获得了 WSDL,但是由于某种原因,在 WSDL 中内部引用的几个架构文件找不到。不知道是配置问题还是什么。当我尝试在 Visual Studio 2010 中处理 WSDL 时出现的错误如下:

Metadata contains a reference that cannot be resolved:
'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc?wsdl'.
The WSDL document contains links that could not be resolved.
There was an error downloading 'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc?xsd=xsd0'.
The request failed with HTTP status 502: Proxy Error ( The specified network name is no longer available. ).
Metadata contains a reference that cannot be resolved:
'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc'.
There was no endpoint listening at http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc
that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution and adding the service reference again.



错误是代理错误,因为它通过代理,但错误是因为页面不存在。我试过访问 http://localhost:9871/app_deploy/MyAppService.svc?xsd=xsd0在服务器上,但我得到 404。

为什么找不到这些 xsd 文件?是部署问题吗?

任何帮助将不胜感激。

最佳答案

伙计,我终于找到问题了here .我需要应用程序池用户对 C:\Windows\Temp 的写权限!

关于wcf - 无法引用 AppFabric 上托管的 WCF Web 服务的 WSDL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5358977/

相关文章:

caching - 估计并发 Azure Appfabric 缓存连接

WCF 服务记录加密数据

wcf - 通讯对象不能用于通讯,因为它已被中止

.net - 如何将 WSDL 添加到 Visual Studio 2005 项目?

c# - AppFabric 缓存 - 它对对象的序列化和反序列化要求是什么?

azure - ACS 中的 MyOpenID : adding required claim types

c# - 读取请求消息正文时出错

.net - WCF SOAP 操作

wsdl - 将 Web 服务请求参数设为必填字段

web-services - 是否可以在 Glassfish 3.1 WebServices 中发布原始 WSDL?