无法引用 AppFabric 上托管的 WCF Web 服务的 WSDL [英] Unable to reference WSDL of WCF web service hosted on AppFabric
问题描述
我开发了一个 WCF 服务,并且在 Visual Studio 2010 中,我可以毫无问题地导入 WSDL.在我将它部署到 AppFabric 之后,我获得了 WSDL,但是由于某种原因,在 WSDL 中内部引用的几个架构文件找不到.不知道是配置问题还是什么.我在 Visual Studio 2010 中尝试处理 WSDL 时遇到的错误如下:
I have developed a WCF service and, while in Visual Studio 2010, I can import the WSDL without a problem. After I've deployed it to AppFabric, I get the WSDL, but several schema files referenced internally in the WSDL cannot be found, for some reason. I don't know if it's a configuration issue, or what. The error I get when I try to process the WSDL in Visual Studio 2010 follows below:
元数据包含无法解析的引用:
'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc?wsdl'.
WSDL 文档包含无法解析的链接.
下载http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc?xsd=xsd0"时出错.
请求失败,HTTP 状态为 502:代理错误(指定的网络名称不再可用.).
元数据包含无法解析的引用:
'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc'.
http://myserver.mydomain.com:9871/app_deploy/MyAppService 没有端点侦听.svc
可以接受消息.这是通常由错误的地址引起或 SOAP 操作.见内部异常,如果目前,了解更多详情.
远程服务器返回错误:(404) 未找到.
如果当前解决方案中定义了该服务,请尝试构建解决方案并再次添加服务引用.
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.
The error is a proxy error because it goes through a proxy, but the error is because the page isn't there. I've tried accessing http://localhost:9871/app_deploy/MyAppService.svc?xsd=xsd0
at the server, but I get 404.
为什么找不到这些 xsd 文件?是部署问题吗?
Why wouldn't these xsd files being found? Is it a deployment issue?
任何帮助将不胜感激.
推荐答案
老兄,终于找到问题了此处.我需要应用程序池用户对 C:\Windows\Temp 的写权限!
Man, I finally found the problem here. I needed write permission on C:\Windows\Temp for Application Pool user!
这篇关于无法引用 AppFabric 上托管的 WCF Web 服务的 WSDL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!