After ofbuscation in IntelliLock 1.5 one of my dll's prism module stop loading (unity), the error message is: “An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”
First i had a reference to portable library (.net, Silverlight 4) that hold some shared objects. And the error was something like "Cant load referenced library System.Windows" although there was no UI in portable library and was no reference to System.Windows dll. But after half of a day of tuning IntelliLock and trying to figure out where the problem is, unity begin to fall with "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" error.
First i thought the problem in referencing portable dll. I replace this library with normal .net one, but error is still the same.
I'm using .Net 4 Client Profile. WPF, C#, Prism 4, unity.
Any ideas how to fix it?