【问题标题】:Load Operation failed for query 'QueryName ' . The remote server returned an error : not found查询“QueryName”的加载操作失败。远程服务器返回错误:未找到
【发布时间】:2018-06-11 10:23:51
【问题描述】:
我将带有 WCF RIA 服务的 Silverlight 应用程序发布到我在 Windows 10 (IIS7) 上的本地主机。
应用程序运行良好。
打开特定屏幕时,我收到此错误:
查询“QueryName”的加载操作失败 - 远程服务器返回错误:未找到
我进行了很多搜索。我很确定问题是因为从查询中检索到的信息的大小。我已经增加了 IIS 的默认大小,并且我在 web.config 文件中使用了这个字段:
maxItemsInObjectGraph = "2147483647"
但错误仍然出现。
谁能建议如何解决这个问题?
【问题讨论】:
标签:
c#
iis
wcf-ria-services
【解决方案1】:
Web.config 和App.config 中的connectionStrings 是否正确?
确保你的 web.config 有
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
在<system.serviceModel>里面
和
<add name="DomainServiceModule" type="System.Web.Ria.Services.DomainServiceHttpModule, System.Web.Ria, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
在<httpModules>.
可能发生了一些错误,以 NotFound 的形式返回。另外,请确保您已在网站项目的属性中启用 Silverlight 调试。
最后一次尝试(对根 web.config 进行这些更改):
<system.webServer>
<security>
<authentication>
<basicAuthentication enabled="false" />
</authentication>
</security>
</system.webServer>
希望对你有帮助!