我在解决方案中有一个web应用程序项目和silverlight项目。我在web应用程序WCF文件,我也得到了下面的错误,而更新的ServiceReference无法更新ServiceReference或删除后再次添加?
There was an error downloading 'http://localhost:5678/DataForSilverlight.svc/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://localhost:5678/DataForSilverlight.svc'.
The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.
If the service is defined in the current solution, try building the solution and adding the service reference again.
我也试图将其删除,然后重新添加,而且我也尝试从Web应用程序删除WCF文件。
你可能会在解决方案Silverlight项目而不是服务:http://本地主机:5678/DataForSilverlight.svc。要添加服务,必须启动并运行 –
我还添加了DataForSilverlight.svc。以前它运行良好,但在对svc文件进行一些更改后,iam无法更新,我已经检查了svc文件代码中的所有内容,并且一切都很好,但它给出了上述错误 –
删除服务,执行“clean project” 。再次添加。您有可能更改的端口号。 –