Silverlight 4中/ .NET 4调试资源字符串 [英] Silverlight 4 / .NET 4 Debugging resource strings

查看:239
本文介绍了Silverlight 4中/ .NET 4调试资源字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到一件奇怪的事。在一些我公司的服务器时,异常信息打印出来(是的,坏的,我知道,这是为了调试),不显示实际的消息。相反,它显示的关键外部字符串资源,并说:调试资源字符串不可用

I recently encountered a strange thing. On some of my company's servers when an exception message is printed out (yes, bad, I know. It's for debugging), the actual message isn't displayed. Instead it displays the key for an external string resource and says that "Debugging resource strings are unavailable"

经过一番研究,我想出了以下内容: 在释放模式,Silverlight不包含为了节省空间,实际的错误消息的DLL的XAP。

After some research I've come up with the following: In release mode, Silverlight does not package the xap with the dlls containing the actual error messages in order to save space.

我已经找到解决办法了旧版本,但没有为4.好像有是SL 2和3运行时它会自动解决这些错误的开发者版本,但我无法找到一个用于SL 4。

I've found workarounds for OLD versions, but nothing for 4. It seems like there are Developer versions of the SL 2 and 3 runtime which will resolve the errors automatically, but I cannot find one for SL 4.

所以我的问题是这样的:

So my question is this:

什么鬼,我需要做的,我的SL 4应用程序/电脑让我看到完整的,详细的错误,当它在释放模式?

推荐答案

您可以从GetStarted页面下载开发人员运行时(其中包含了完整的异常字符串) - 的http://www.silverlight.net/getstarted/ - 搜索开发运行时为Windows和OSX,它的页面底部附近

You can download the developer runtime (which contains the full exception strings) from the GetStarted page - http://www.silverlight.net/getstarted/ - search for "Developer Runtimes for Windows and OSX", it's near the bottom of the page.

这篇关于Silverlight 4中/ .NET 4调试资源字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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