Error 23 is not a valid Win32 application in the .resx file

I have a form in my VB> NET (2010) project with some ImageList. These images are embedded in the list with the form resource in the .resx file as

data name = "xxxx.ImageStream" mimetype = "application / x-microsoft.net.object.binary.base64 When I tried to create / run my project, I get:

Error 23 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) Line XXXX, position X ...

in the line where the data tag closes.

When I change the base64 code of the image inside the .resx file (changing some "0" to "y"), the project compiles, but when I try to run the application, the images reload and my changes disappear

Do you know how to solve this error and make my project build and work? Thanks

+4
source share
2 answers

if in the first line you have vbj00L near the end, replace it with vbj0yL - this will fix your problem. You will need to do this every time you change the shape of the designer.

+4
source

news from MS support ticket results.

1.This is a known issue on dotnet platforms through 4.0. It is fixed at 4.5. http://blogs.msdn.com/b/visualstudio/archive/2010/06/18/resgen-exe-error-an-attempt-was-made-to-load-a-program-with-an-incorrect- format.aspx? PageIndex = 5 & CommentPosted = true # commentmessage

2. Thus, to use the "old" 32-bit vbj00L values ​​with the previous target dotnet network, simply install the 4.5 SDK. 2. I do not need a separate installation; I just installed Visual Studio VS2012, which installed 4.5 for me. 2b. After 4.5 is located on the machine, Resgen.exe, a common component, is available for other studios and frameworks, for example VS2010 / net3.5. The compilation will succeed.

3. Regarding the error, I assume that it is related to the problem of integer representations.

0
source

All Articles