在IIS 5.1中托管Silverlight 5 [英] Hosting Silverlight 5 in IIS 5.1

查看:90
本文介绍了在IIS 5.1中托管Silverlight 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在IIS 5.1上托管Silverlight应用程序,因为当我创建虚拟目录并发布Silverlight项目并尝试浏览它时,出现以下错误:

I wanted to know if a Silverlight application can be hosted on IIS 5.1, because when I create a virtual directory and publish the Silverlight project and try browsing it, I get this following error:

您尝试在此Web服务器上访问的Web应用程序当前不可用.请在网络浏览器中点击刷新"按钮,以重试您的请求.

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

推荐答案

在IIS中托管Silverlight:

Host Silverlight in IIS:

  1. 将应用程序添加到:(或确保IIS_IUSRS拥有权限)

  1. Add application to: (Or make sure IIS_IUSRS has permission)

C:\inetpub\wwwroot\[Application]

  • 添加网站并指向Silverlight目录
  • 将其添加为应用程序
  • 确保将应用程序池设置为可以支持.Net 4的内容

  • Add Website and point to Silverlight directory
  • Add it as an application
  • Make SURE you set the application pool to something that is capably of .Net 4

    1. 转到连接窗格上的应用程序池
    2. 右键单击用于该应用程序的应用程序池
    3. 转到基本设置"

  • 将默认文档设置为您的Silverlight页面
  • 启动网站
  • 这篇关于在IIS 5.1中托管Silverlight 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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