WCF RIA 域服务

发布于 2025-01-01 10:47:04 字数 210 浏览 2 评论 0原文

我使用 Silverlight 4 创建了 WCF RIA DOMAIN Services 项目,整个框架已启用 WCF RIA 。创建了两个项目:silverlight 和 web。项目正在我的本地系统上运行文件。但在网络服务器上托管时。它显示远程服务器错误。如果有任何我必须创建的 svc 文件或域服务自行托管它。我可以找到任何服务参考。这是我必须添加为 .svc 文件的东西吗?

谢谢

I created WCF RIA DOMAIN Services project with Silverlight 4 with entiry framework having enablabed WCF RIA . Two projects are created;silverlight and web. Project is running file on my local system. But upon hosting on web server. it shows remote server error. If there any svc file which i have to created or Domain service host it byself.I can find any service reference. is this something i have to add as .svc file.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青丝拂面 2025-01-08 10:47:04

如果项目在本地运行良好,而不是在部署到 Web 服务器时运行良好,那么首先要检查的是 ServiceModel 程序集是否安装在服务器的 GAC 中。如果不是,则在您的项目中执行以下操作...

  1. 在解决方案资源管理器的引用文件夹中,找到名为 System.ServiceModel.DomainServices.* 的程序集,右键单击每个程序集并选择“属性”
  2. 在“属性”窗口中,将“复制本地”设置为 true。

这会将这些程序集放置在“bin”目录中。然后将bin目录部署到服务中。

If the project is working fine locally and not when you deploy to a web server, the first thing to check is if the ServiceModel assemblies are installed in the GAC of the server. If they are not, then in your project, do the following...

  1. In the References folder of Solution Explorer, locate the assemblies called System.ServiceModel.DomainServices.*, right click on each and select 'Properties'
  2. In the Property window, set 'Copy Local' to true.

This will place these assemblies in the 'bin' directory. Then deploy the bin directory to the service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文