IIS 10.0上具有RIA服务的Silverlight导致404错误 [英] Silverlight with RIA services on IIS 10.0 results in 404 error

查看:314
本文介绍了IIS 10.0上具有RIA服务的Silverlight导致404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试将具有WCF RIA服务的现有运行Silverlight应用程序从W indows Server 2016 上的 IIS 6.0 迁移到 IIS 10.0 ,但是该应用程序无法返回 404错误.当我在服务器上安装Visual Studio并尝试运行该应用程序时,它在IIS Express的上下文中运行良好.

Trying to migrate an existing working Silverlight application with WCF RIA services from IIS 6.0 to IIS 10.0 on Windows Server 2016 but the application fails returning 404 errors. When I install Visual Studio on the server and try running the application then it works fine within the context of IIS Express.

服务器已安装以下组件.

The server has the following components installed.

  • Microsoft Silverlight 5.0
  • Microsoft Silverlight 4 SDK
  • Microsoft Silverlight 5 SDK
  • WCF RIA服务V1.0 SP2

我什至尝试直接访问System.ServiceModel.DomainServices创建的虚拟RIA服务,它还会导致404错误.下面是直接从IIS浏览时,提琴手的屏幕打印.我在这里想念什么?是否有人在IIS 10.0上成功地将带有RIA服务的Silverlight部署了?

I’ve even tried to directly access the virtual RIA services created by the System.ServiceModel.DomainServices and it results in 404 errors as well. The below is the screen print from fiddler when directly browsing from IIS. What am I missing here? Has anyone successfully deployed Silverlight with RIA services on IIS 10.0 ?

根据评论,附件是从浏览器和web.config设置访问URL时的实际错误

Per the comments, attached is the actual error when accessing the URL from the browser and the web.config settings

感谢您的帮助.

推荐答案

经过长期努力,我们发现可能需要启用HTTP Activation 如图中Add Roles and Features Wizard下的WCF Services所示. WCF RIA服务引发的 404 错误确实含糊不清,即使在Fiddler之类的工具中,也可能无法为您提供实际的错误.

After long struggle figured out that we may need to enable HTTP Activation for the WCF Services under Add Roles and Features Wizard as shown in the image. The 404 error thrown by WCF RIA services is really vague and may not give you the actual error even in tools like Fiddler.

请注意,我正在使用Windows Server 2016,根据所使用的服务器版本,您可能会看到一些不同的向导.

Please note, I'm using Windows Server 2016, you may see a bit different wizard depending on the server version you're using.

这篇关于IIS 10.0上具有RIA服务的Silverlight导致404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆