查询'QueryName'的加载操作失败。远程服务器返回错误:未找到

时间:2018-06-11 10:23:51

标签: c# iis wcf-ria-services

我在Windows 10(IIS7)上向我的本地主机发布了带有WCF RIA服务的Silverlight应用程序。

该应用程序运行正常。

打开特定屏幕时,出现此错误:

  

查询'QueryName'的加载操作失败 - 远程服务器返回错误:未找到

我做了很多搜索。我很确定这个问题是因为从查询中检索的信息的大小。我增加了IIS的默认大小,我在web.config文件中使用了这个字段:

maxItemsInObjectGraph = "2147483647" 

但错误仍然存​​在。

有人可以建议如何解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

connectionStringsWeb.config中的App.config是否正确? 确保您的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>

希望它有所帮助!