WCF RIA Service + IIS 6: NotFound 错误

WCF RIA Service + IIS 6: NotFound 错误,第1张

概述部署一个Silverlight 项目到客户的服务器上,数据访问采用WCF RIA Service,服务器是Win 2003 + IIS 6, 遇到了问题:   Unhandled Error in Silverlight Application Load operation failed for query 'xxxx'. 远程服务器返回了错误: NotFound   根据Saurabh的blog

部署一个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 post here.

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 “-“

总结

以上是内存溢出为你收集整理的WCF RIA Service + IIS 6: NotFound 错误全部内容,希望文章能够帮你解决WCF RIA Service + IIS 6: NotFound 错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1075135.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存