WCF RIA Service + IIS 6: NotFound 错误

部署一个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 “-

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值