我们在我们的SPA (Durandal)中使用Breeze,直到现在我们使用EF5来返回Breeze所需的元数据,但现在我们想在某些场景中使用DTO,所以我们在http://www.breezejs.com/documentation/ef-design-tool之后实现了它,它在开发环境中工作得很好,但当我们将它部署到IIS时,它会返回"Metadata query failed for: breeze/DTO/ metadata;An error have our“。
我已经检查了到服务的路径是否正确。
请帮帮忙..。
发布于 2014-10-21 22:50:23
我能够解决这个问题,根本原因是DTO需要一个虚拟连接字符串才能工作,特别是在使用Webdeploy发布代码的情况下。我引用了Breeze示例"DocCode“网络配置--
<!-- TODO: is this needed?
phony FoosMetadataContext connection enables FoosMetadataProvider to succeed; there is no nonsense.sdf-->
<add name="FoosMetadataContext" connectionString="Data Source=|DataDirectory|nonsense.sdf" providerName="System.Data.SqlServerCe.4.0" />https://stackoverflow.com/questions/26355160
复制相似问题