我开发了一个 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/