【问题标题】:Silverlight app not running on Windows Phone 10Silverlight 应用程序未在 Windows Phone 10 上运行
【发布时间】:2025-12-02 09:45:01
【问题描述】:

我们有一个为 Windows Phone 8 编写的 Silverlight 应用程序。

公司中的每个人都已升级到 Windows Phone 10,并且该应用仍然可以从 Microsoft Store 完美安装和运行。除了一部手机!解锁手机进行开发并在调试中运行它会在输出中出现以下错误...

Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.ni.dll
Exception thrown: 'System.TypeLoadException' in mscorlib.ni.dll

获取 FileNotFoundException 的详细输出会给出以下结果...

Additional information: Could not load file or assembly 
'System.Windows.RuntimeHost, Version=2.0.6.0, 
Culture=neutral, PublicKeyToken=7cec85d7bea7798e' 
or one of its dependencies. The system cannot find the file specified.

System.Windows.Runtimehost dll 是运行 Silverlight 应用程序的主机。这可以解释为什么它不运行。但是,这怎么能从手机中丢失,而不是从任何其他手机中丢失呢?

我们尝试将手机恢复出厂设置,但仍然无法正常工作。

其他人看起来像这样,有什么想法吗?

【问题讨论】:

  • 那个手机的型号和其他的不一样吗?
  • 您使用的是哪个 win10mobile 版本? 14393 或 10586

标签: silverlight windows-phone-8 windows-10-mobile


【解决方案1】:

我设法从有效的 Microsoft 论坛获得了建议。

我使用了 Windows 设备恢复工具,它允许下载新映像,然后将其安装到手机上。它会自动为您的手机品牌/型号提取正确的图像。我假设这些是在 Microsoft 托管的。使用新图像更新手机后,它按预期工作。

【讨论】:

  • 你再次错过了所有细节。你用的是哪款手机,刷过哪个版本的?