Can WCF RIA Services be self hosted?

浪子不回头ぞ 提交于 2019-11-29 14:49:44
Alexey F

Actually, it can be self-hosted after small configuration:

DomainServiceHost host = new DomainServiceHost(typeof(DomainService1), uri);
host.Description.Behaviors.Remove<AspNetCompatibilityRequirementsAttribute>();

WCF RIA Services is build on top of WCF and they get exposed as WCF services. See WCF RIA Services on MSDN.

According to this forum thread on MSDN, it is not possible to do such thing because RIA services set the ASP.NET compatibility to be required, therefore needing the IIS hosting.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!