调试资源字符串不可用(Silverlight + MonoMac)

发布于 2024-11-30 13:48:58 字数 1371 浏览 1 评论 0原文

我有一个 Silverlight 应用程序,我使用 MonoMac 在 Mac 中编写了一个启动器(基本上是一个嵌入式 Web 浏览器控件,用于加载包含 SL xap 的页面)。但是,我不断收到一个我一生都无法调试的错误:

MS.Internal.WrappedException: Error 0x8000FFFF.  Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x8000FFFF  (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Exception: Error 0x8000FFFF.  Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x8000FFFF  (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

现在,我猜测这是某种 Xaml 异常,但我无法证明这一点,而且我有太多异常Xaml 文件来一一查看它们。有谁知道如何让这些丢失的资源字符串显示出来?

我在 Mac 上安装了 Silverlight 4 Development Runtime(我实际上是从 Windows 计算机进行远程调试)。

更新 当包含的 Xaml 没有 WebBrowser 控件时,引发的异常消失。 xap 在 Windows 版 Silverlight 和 Mac 上的浏览​​器内 Silverlight 中加载并运行良好,但当可视化树中存在 WebBrowser 控件时,xap 在 OOB 模式下会失败。

I have a Silverlight application that I have written a launcher for in Mac using MonoMac (basically an embedded web browser control that loads the page containing the SL xap). However, I keep getting an error that I can't for the life of me debug:

MS.Internal.WrappedException: Error 0x8000FFFF.  Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x8000FFFF  (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Exception: Error 0x8000FFFF.  Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x8000FFFF  (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

Now, I'm guessing this is some kind of Xaml exception of some sort, but I have no way to prove that and I have way too many Xaml files to look at them one-by-one. Does anyone know how to get these missing resource strings show up?

I have the Silverlight 4 Development Runtime installed on the Mac (I'm actually doing Remote Debugging from a Windows machine).

Update
The exception that is thrown goes away when the containing Xaml does not have a WebBrowser control. The xap loads and runs fine in Silverlight for Windows and Silverlight in-browser on Mac, but fails in OOB mode when there is a WebBrowser control in the visual tree.

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

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

发布评论

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

评论(1

迷荒 2024-12-07 13:48:58

请注意,错误的以下部分:

调试资源字符串不可用。看
http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x8000FFFF

为了保留Silverlight运行时很薄,省略了很多字符串,以支持在线链接。如果您点击该链接,它会告诉您有关所遇到的错误的更多信息。

找不到资源 ID 的定义。

您的部分代码似乎引用了不存在的资源键。

Note, the following portion of the error:

Debugging resource strings are unavailable. See
http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x8000FFFF

In order to keep the Silverlight runtime slim, a lot of strings were omitted in favour of links to them online. If you follow the link, it will tell you more about the error that you encountered.

The definition of the resource ID could not be found.

It appears as though part of your code is referencing a resource key that doesn't exist.

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