2011-03-18 110 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