部署一个Silverlight 项目到客户的服务器上,数据访问采用WCF RIA Service,服务器是Win 2003 + IIS 6, 遇到了问题:
Unhandled Error in Silverlight Application Load operation failed for query 'xxxx'. 远程服务器返回了错误: NotFound
根据Saurabh的blog Deploying Application built using RIA Services RC,得知程序的Form验证不能与IIS的集成验证一起使用:
Forms Auth + Anonymous will also work fine but Forms Auth + Integrated Auth is not supported.
取消IIS上的集成验证,问题解决
Saurabh 文中提到的通过构造.svc url 并检查该url是否正常工作,也对排错很有帮助:
Browsing to the .SVC
For every DomainService, a WCF Service is created at runtime using the ASP.NET feature of Virtual Path Providers. More details on the dynamic .SVC file creation can be found in my blog posthere.
Since it is a virtual file you will not see a physical .svc in your deployed project, but it will exist at runtime. Being able to browse to the .SVC can be key to debugging RIA Services deployment issues.
For a given DomainService the path to its .SVC can be determined using the following convention:
[BaseURI] + [DomainServiceNameWithNamespace].svc with all “.” in the DomainServiceFullName replaced by “-“