Eazfuscator.NET 日志记录?
我正在使用 Eazfuscator.NET 3.0.41 来混淆 (VS 2010) WPF 4 应用程序。混淆后,当我双击 exe 文件时,它会抛出这样的错误消息。
“描述:由于未处理的异常,进程被终止。 异常信息:System.Windows.Markup.XamlParseException“
有没有办法可以启用某种日志记录来检查哪里出了问题?我该如何解决这个问题?请建议
I am using Eazfuscator.NET 3.0.41 to obfuscate a (VS 2010) WPF 4 application. After obfuscating, when I double click the exe file it's throwing an error message like this.
"Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException"
Is there a way I could enable some sort of a logging to check where it's going wrong ? How can I solve this problem? please advice
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
感谢您的快速回复。
我找到了解决这个问题的方法。这是发生的事情。
当 Eazfuscator 混淆 WPF 应用程序时,它不会混淆 BAML 代码,但会更改引用 BAML 的方法名称,例如 OnMouseClick 事件。因此,当应用程序加载时,它将查找相应的事件,并且由于它们不再存在,因此会触发此错误。
为了解决这个问题,绑定到 WPF 中的事件的每个事件都必须使用此签名进行标记,
例如。
解决此类错误的最简单方法是打开 VS 2010 编辑器,将其更改为发布模式并运行。
希望这对其他人也有帮助。
Thanks for your quick response.
I found the solution to this. Here is what happens.
When Eazfuscator obfuscates WPF applications it doesn't obfuscate BAML code, but it does change the method names that refers to BAML like OnMouseClick events. So when the app loads it will look for corresponding events and since they are not there anymore it will trigger this error.
To solve this problem, each event that binds to an event in WPF must be flaged with this singature
Eg.
Easiest way to troubleshoot these kinds of error is to open the VS 2010 editor, Change it to release mode and run.
Hope this will help someone else as well.
打开 Reflector 中的混淆输出可能会揭示一些情况。检查您的XAML中的类和属性名称是否根据相应的类和属性进行了重命名。
Opening the obfuscated output in Reflector might shed some light on it. Check if the class and property names in your XAML were renamed according to the corresponding classes and properties.