2011-03-18 116 views
5

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

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文件?这是一个部署问题吗?

任何帮助将不胜感激。

回答

9

男人,我终于发现问题here。我需要在C:\ Windows \ Temp上为应用程序池用户写入权限!

+2

谢谢!!!!!!!!!!!!!!!!!!!!!!!!!!! – Funky 2013-07-24 12:44:55