![]() |
System.BadimageformatException - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: CrossTalk (https://www.atozed.com/forums/forum-2.html) +---- Forum: CrossTalk General Discussion (https://www.atozed.com/forums/forum-7.html) +---- Thread: System.BadimageformatException (/thread-1689.html) |
System.BadimageformatException - joel - 05-23-2020 I have a dll that I have created in Visual Studio that I need to use in a delphi application. In delphi using crosstalk 2.0.30 I get the following error when I try to compile the application. [img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW8AAAD1CAYAAACftnSFAAAgAElEQVR4Ae19ya4kN9pdbgz7FfQQBgzL/hf3FfwGWhsXDTQEaGnACy0MGIZX9xH0FBfwogd1o7vV3Rp6UJWGUqlUKg0lqdRSzyMQxkfGYRx+QTIjMiMzI/OeArIiSH78hsOPJ5jMiLibf/3rXx0+//znPzv7/OMf/+j+/ve/h8/f/va3zj5//etfw+cvf/lLh8+f//znDp8//elPnT7CQDmgHFAOLJcD4Fc7gnftaHy8MeJm0gZx10iblfEg/fGPf+z0EQbKAeWAcmC5HGCOZe41At8wcfNqm1fa6ARFGJw//OEPHT6///3vO32EgXJAOaAcWC4HwK92BO+ChwN5l1bbxuxM2tYRijA43377bWefb775Rh9hoBxQDigH9syB3/3udyMMwbPgXfDwhombV9vG7iBsdAZJm4Gvv/46fJ49e9bZ56uvvtJHGCgHlAPKgQVzAPwKvgW5GydvbKsEP0hitW2kbSyPVbV1BEF/+eWX3RdffNE9ffq0+/zzz7vPPvssfD799NNOH2GgHFAOKAeWywHwq3Gtca5xry2UjY83TNxYbRtpG2GbkJG1dTIlNiiffPJJ9+TJk+7jjz/uHj9+3H300Ufh8+jRo04fYaAcUA4oB5bLAfCrca1xrvGv8bCReSJv29+2FbcRt7G6MbwJGVFbRxuQDz/8sHv48GH3wQcfdA8ePOjef//97r333gufd999t9NHGCgHlAPKgd1y4J133unwAYbgV+Na41zjXuNhI/WN7XPbdomtum2rxF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P80kF+6XifuIvO1uE22bXOZgaxJrXJUDl5MDRfLWrYKXM8CarBpL5cBl5kAg788++6z7+OOPO93nfZmDrMmrcVUOXF4OFMn7rbfe0q2C2gvXXrhyQDmw4hwI5G13nDx58qR7+PBh984773S/+tWvRN4rHjStoi5vFaUx1ZjOzYHNF1980YG8P/zww+69997rfv3rX4u8Rd5adSkHlAMrzoFA3ni/yUcffdS9//773W9/+1uR94oHbe4VWvJa1SkHLi8HNl9++WVn5G0/Wtp7AexHS3tQRy+murzB1gTWmCoHLicHAnnz1smjR4/C1omRtz7CQDmgHFAOrDMHEnnb6vuTTz7pbOvEVt/2w+VvfvObzu48ef3117uf//zn3Wuvvdb99Kc/7X7yk590P/7xj7sf/ehH3Q9/+MPuBz/4Qff973+/+973vqePMFAOKAeUAwvkgHGqcatxrHGtca5x789+9rPAx5uvvvqqs5U3tk7srhMQ+Lvvvhu2UGwP3O5AsYd37OnLX/7yl6GzEbopsg9I3ZTrIwyUA8oB5cB+OWCcCn41rrWPca/xsPHx5tmzZ53te5cI3G4dfPDgQWckbo/Nv/322+HHTLsbxVbkpsRW5fYxpb/4xS/0EQbKAeWAcmCBHDBOBb8a1xrnGvcaD9vvkpuvv/66s9U3frjEnSe2ArcfMG0P3LZRjMTtNkLbTmEit60VU2hXAn2EgXJAOaAc2C0HjJzxAYbGrcaxtvthpG3ca4tp4+L/D0pZeiNn3Ab8AAAAAElFTkSuQmCC[/img] I have tried to recompile the SecurityCrypt.dll with Visual Studio to make sure that it was compiled in 64 bit. Any ideas on this one? The image did not post correctly. The error message is system.BadImageFormatException: could not load file or assembly security.dll or one of its dependencies. An attempt was made to load a program with an incorrect formate. RE: System.BadimageformatException - kudzu - 05-23-2020 For images you need to upload. However bad image format usually means you are trying to load x86 into x64 or vice versa. Most .NET assemblies are "ANY" which means either, but some assemblies that have native connections are platform specific. As you said you created the assembly, is it something other than ANY for platform type, and if so is there a need for such? If so which is it? x86 or x64? RE: System.BadimageformatException - joel - 05-24-2020 (05-23-2020, 08:58 PM)kudzu Wrote: For images you need to upload. It should be x64. I have compiled it in Visual Studio with both x64 and "any CPU" and it does not work. I am trying to setup a new computer, which is where I am encountering the problem, with the following Delphi Community edition 10.3.3 Crosstalk 2.0.30 Visual Studio 2019 (Also the drive is an M.2 drive) I have an old computer where it works without issues. It is configured differently though. Delphi Enterprise 10.2 Crosstalk 2.0.30 Visual Studio 2017 Even if I copy the assembly from the old computer (where it works) to the new computer I still get the error. RE: System.BadimageformatException - kudzu - 05-24-2020 Unless you need it to be x64, you should use ANY. This is true for any .NET assembly, not only ones used with CrossTalk. ANY will run as x64 on x64 and x86 on x86. Try this. Make a simple .NET assembly that only has one class with one method that returns something simple like an integer. This assembly is very basic and has no other dependencies. Then see if you see any differences. What Windows versions are each of these PCs? RE: System.BadimageformatException - joel - 05-25-2020 (05-24-2020, 06:13 PM)kudzu Wrote: Unless you need it to be x64, you should use ANY. This is true for any .NET assembly, not only ones used with CrossTalk. ANY will run as x64 on x64 and x86 on x86. I did the following with mixed results. (Both of the original pc's are running windows 10; however, the old one was running an Intel chip and the new one is running an AMD Ryzen.) 1. I recompiled the original .net assembly on the new windows 10 box with the AMD Ryzen with "any cpu" and then I get the error: "the selected file is not a .NET assembly or does not match the processor architecture." 2. I then created new a simple assembly with one class and method on the new windows 10 Ryzen box. It worked without issues. 3. I then found a 3rd computer with windows 7 on it and an AMD processor and compiled the original assembly and copied it to my new windows 10 AMD box. It then worked without issues. This is very strange. I looked deep at the original assembly. It is using 2 other assemblies. One of them is argon2: https://github.com/alipha/csharp-argon2 I am sure it is something dealing with another assembly that it is usering. RE: System.BadimageformatException - kudzu - 05-25-2020 From the Argon 2 page: You should explicitly specify in your solution using the configuration manager whether to build your solution for x86 or x64 and not use the default "Any CPU". You may get an error at runtime if the incorrect DLL is used because you specified your platform as "Any CPU". So it would seem somewhere in your deployments the x86/x64 of one of the dependent assemblies is not matching the .NET hosting environment. You will need to compile your Delphi app as x86 or x64 to control which version of the .NET framework is used to host. If you are using x86 Delphi compilation it cannot load any explicit x64 .NET assemblies and vice versa. You may need to also compile your assembly explicitly as x86/x64 instead of ANY in some cases as well. RE: System.BadimageformatException - joelcc - 06-01-2020 I end up purchasing the Enterprise version of Delphi over the weekend and this problem went away. I guess maybe everything was not playing nicely with the Community Edition. |