Silverlight RIA 服务托管
我想知道是否可以在 IIS7 中将 RIA 服务作为独立的应用程序托管?我尝试过一些 RIA 服务,想知道这种情况是否可能。我的目标是将服务与网站应用程序分离并单独托管。
提前致谢!
I wonder is it possible to host RIA service as a stand alone application in IIS7? I've playing around with some RIA services and a wonder whether this scenario is possible. My goal is to detach the service from the WebSite application and host it separately.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
绝对有可能,只需创建另一个 ASP.Net Webforms 应用程序,添加域服务,引用您的模型(如果它在另一个库中),然后将 Silverlight 项目链接到它。最好将 XAP 托管在与 RIA 服务相同的项目中,以避免任何跨域问题。在您真实的网站中,只需复制并粘贴它生成的对象标记和 javascript,并确保其指向 RIA 服务站点上的正确位置。
Definitely possible, just create another ASP.Net webforms application, add the domain service, reference your model (if its in another library), and link the Silverlight project to it. Might also be best to host your XAP in the same project as the RIA service to avoid any cross domain issues. In your real website, just copy and paste the object tag and javascript it generates and make sure its pointing to the right location on the RIA service site.