Does it works with assemblies mixing unmanaged code ?

reg t replied to Peter Bromberg at 05-Jan-08 04:42

I now got an exception trying to use an assembly wraping unmanaged code.

The target application is a long-used one, so it works fine so far. It is mainly managed code, but it use one libray wraping unmanaged code.

The loader-application load the main assembly and resolve the rest of the assembly including the wraping library. It works fine whenever the logic in the unmanaged code is not needed. As soon it is required, this exception is thrown:

System.IO.FileLoadException was unhandled
  Message="Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)"
  Source="Match"

Q: Is this method (packing-zip-obfuscation) expected to works with assemblies mixing unmanaged code ? What should I do?

 




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Article Discussion: Obfuscation and Packaging of .NET Applications via Compressed Embedded Assemblies - Peter Bromberg  11-Dec-07 7:12:18 AM
      target method to lauch the main windows in WPF - reg t  04-Jan-08 6:58:47 AM
          The sample uses a DLL embedded assembly - Peter Bromberg  04-Jan-08 7:23:36 AM
              how to launch the main windows in WPF ? - reg t  04-Jan-08 9:30:48 AM
                  It is reporting an error in your XAML file. - Peter Bromberg  04-Jan-08 11:00:49 AM
                      XAML and cs code - reg t  04-Jan-08 10:36:52 PM
                      now is ok - reg t  05-Jan-08 3:49:55 AM
                      Does it works with assemblies mixing unmanaged code ? - reg t  05-Jan-08 4:42:06 AM
                      assemblies mixing unmanaged code ? - - reg t  05-Jan-08 9:47:22 AM
      Loader stay running as a process after closing target application - reg t  04-Jan-08 11:38:56 PM
View Posts