Silverlight 2.0 加载问题

发布于 2024-07-14 13:09:51 字数 2045 浏览 2 评论 0原文

我为客户开发了一个 SL2 应用程序(其计算机通过组策略受到相当严格的锁定)。 SL2 应用程序对除了客户之外的所有人都运行良好。

客户端使用WinXP + IE7并安装了SL2运行时。

在客户端的计算机上弹出以下错误:

Error: Unhandled Error in Silverlight
2 Application Code: 2103 Category:
InitializeError Message: 2103 An error
has occurred Code: 0

客户端可以加载 SLv1 网站,例如 http://silverlight.net

客户端无法加载 SLv2 网站,例如:

客户看到的是一个空白的 silverlight 画布,但可以右键单击并调出silverlight 首选项菜单。

替代文本 http://img6.imageshack.us/img6/1309/hardrockerror.jpg< /a>

关于如何调试此问题的任何想法或者其他人是否遇到过此问题?

我应该补充一点,它在 Firefox 下运行良好,但他们的 IT 部门不愿意将 FF 推广到所有机器。 环境必须是XP + IE7

Markup:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
            <param name="source" value="/ClientBin/RosterUI.xap"/>
            <param name="onerror" value="onSilverlightError" />
            <param name="background" value="white" />
            <param name="minRuntimeVersion" value="2.0.31005.0" />
            <param name="autoUpgrade" value="true" />
            <param name="scaleMode" value="zoom" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
                <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
            </a>
        </object>

I have developed a SL2 application for a client (whose computers are under pretty heavy lockdown via group policies). The SL2 application has worked fine for everyone except the client.

The client is using WinXP + IE7 and has the SL2 runtime installed.

On the client's machine the following error pops up:

Error: Unhandled Error in Silverlight
2 Application Code: 2103 Category:
InitializeError Message: 2103 An error
has occurred Code: 0

The client can load SLv1 websites like http://silverlight.net

The client can't load SLv2 websites like:

What the client sees is a blank silverlight canvas but is able to right click and bring up the silverlight preferences menu.

alt text http://img6.imageshack.us/img6/1309/hardrockerror.jpg

Any ideas on how to debug this issue or has anyone else encountered this issue?

I should add that it works fine under firefox, but their IT department is unwilling to roll out FF to all the machines. The environment must be XP + IE7

Markup:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
            <param name="source" value="/ClientBin/RosterUI.xap"/>
            <param name="onerror" value="onSilverlightError" />
            <param name="background" value="white" />
            <param name="minRuntimeVersion" value="2.0.31005.0" />
            <param name="autoUpgrade" value="true" />
            <param name="scaleMode" value="zoom" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
                <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
            </a>
        </object>

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

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

发布评论

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

评论(4

云朵有点甜 2024-07-21 13:09:52

也许客户端安装了较旧版本的 SL2。 您可以在 Microsoft Silverlight 配置面板的“关于”选项卡中检查其版本号(右键单击空的 Silverlight 应用程序)。

如果是较旧的版本,他们将需要安装 RTM 版本。

Perhaps the client has an older build of SL2 installed. You can check their version number in the About tab in the Microsoft Silverlight Configuration panel (right click on the empty Silverlight app).

If it's an older build, they'll need to install the RTM build.

昇り龍 2024-07-21 13:09:51

经过几个月的反复讨论,问题已经得到解决——尽管我们仍然不知道真正的根本原因。

客户的 IT 人员最近更新了他们的透明代理服务器(也可以过滤内容),并且 silverlight 应用程序开始在 IE 下工作。

所做的更改之一是允许下载 DLL 文件(捆绑在 XAP 文件中)。 他们认为这就是原因,尽管我不是 100% 相信,因为它不能完全解释为什么它在 Firefox 中工作(假设它也通过代理运行)

After months of to-ing and fro-ing the issue has been resolved - although we still don't know the true underlying cause.

The client's IT staff recently updated their transparent proxy server (which also filters content) and the silverlight app started working under IE.

One of the changes made was to permit the downloading of DLL files (which is bundled in the XAP file). They think that is the cause, although I am not 100% convinced as it doesn't quite explain why it works in Firefox (assuming it also runs through the proxy)

对岸观火 2024-07-21 13:09:51

我会仔细检查调用 Silverlight 控件的 HTML 标记是否列出了正确的版本号。 如果您使用 ASP 用户控件,应该没问题。 如果您手动编写 HTML 代码,它应该如下所示:

 <object data="data:application/x-silverlight," type="application/x-silverlight-2"
  id="silverlightHost" width="100%" height="100%">
  <param name="source" value="ClientBin/MYXAPFILENAME.xap" />
  <param name="onerror" value="onSilverlightError" />
  <param name="background" value="white" />
  <param name="initparams" value="<%= _initParams %>" />
  <param name="minRuntimeVersion" value="2.0.31005.0" />
  <param name="autoUpgrade" value="true" />
  <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
      style="border-style: none" />
  </a>
</object>

I'd double check that the HTML markup that invokes the Silverlight control has the correct version number listed. If you use the ASP User Control, it should be fine. If you hand code the HTML, it should look something like this:

 <object data="data:application/x-silverlight," type="application/x-silverlight-2"
  id="silverlightHost" width="100%" height="100%">
  <param name="source" value="ClientBin/MYXAPFILENAME.xap" />
  <param name="onerror" value="onSilverlightError" />
  <param name="background" value="white" />
  <param name="initparams" value="<%= _initParams %>" />
  <param name="minRuntimeVersion" value="2.0.31005.0" />
  <param name="autoUpgrade" value="true" />
  <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
      style="border-style: none" />
  </a>
</object>
梦魇绽荼蘼 2024-07-21 13:09:51

重新安装 Silverlight 运行时或 IE7 可能会有所帮助。

May be a reinstall of Silverlight runtime or IE7 can help.

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