KeyNotFoundException during WPF resource merging
Seth
Posts: 15 Bronze 1
Our company has been using SmartAssembly for a few releases to obfuscate our applications for a while now. In our new release, we've run through many obfuscation tests and keep getting an exception when building a specific DLL of ours. This exception, a KeyNotFoundException generated by a dictionary, hits during merging WPF resources. I've attached a text file with the exception message as a reference. I've seen other posts where users see this error and jump to knowing a style or other WPF resource that causes the issue, but not how they made that jump nor how they resolved it. If I see this error in the SmartAssembly log, how do I track down which WPF resource is causing the issue, and are there any tips to know how to fix those issues?
Tagged:
Best Answer
-
RichardL Posts: 417 Gold 4Hi @Seth
Thanks for your post.
This looks like something a support engineer should take a look at for you so please send us a ticket if you have a support contract and don't end up receiving any support here from the community.
Kind regards
Richard Lynch.Customer Support
Redgate Software
Answers
An update on this issue: The problem here was with the BamlRecordType.TypeSerializerInfo attribute in bamlreader, which SmartAssembly was having issues with reading. If anyone is running into this, please contact support@red-gate.com as we have a private build that gets around this.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
For now though, if you are running into the same issue with BamlRecordType.TypeSerializerInfo, I've made a link for the private build here.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?