Can WCF RIA Services be self hosted?

前端 未结 3 1022
我寻月下人不归
我寻月下人不归 2020-12-21 03:51

I know WCF can be self hosted. how about WCF RIA Services? Thanks!

相关标签:
3条回答
  • 2020-12-21 04:25

    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.

    0 讨论(0)
  • 2020-12-21 04:36

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

    0 讨论(0)
  • 2020-12-21 04:41

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

    DomainServiceHost host = new DomainServiceHost(typeof(DomainService1), uri);
    host.Description.Behaviors.Remove<AspNetCompatibilityRequirementsAttribute>();
    
    0 讨论(0)
提交回复
热议问题