调试资源字符串不可用(Silverlight + MonoMac)
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,错误的以下部分:
为了保留Silverlight运行时很薄,省略了很多字符串,以支持在线链接。如果您点击该链接,它会告诉您有关所遇到的错误的更多信息。
您的部分代码似乎引用了不存在的资源键。
Note, the following portion of the error:
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.
It appears as though part of your code is referencing a resource key that doesn't exist.