Could not load file or assembly … or one of its dependencies. An attempt was made to load a program with an incorrect format (.resx file)

后端 未结 4 705

I am getting the following error message when compiling or attempting to run my application on Windows 7 64 bit. I\'ve scoured the Internet and many people have the same err

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 06:57

    This appears to be a VS 2010 bug with image lists. See https://connect.microsoft.com/VisualStudio/feedback/details/532584/error-when-compiling-resx-file-seems-related-to-beta2-bug-5252020?wa=wsignin1.0

    I was able to utilize the workaround listed to get it to work for me.


    Posted by Luis Mack on 5/12/2010 at 8:50 AM I've found the same problem, only for a specific project when compiling on a 64-bit machine. A fix that SEEMS to work is to manually alter one character in the image stream EVERY TIME the usercontrol or form is edited in the designer

              AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w

    Change to      AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w

    That is 00LjAuMC4w back to 0yLjAuMC4w at the end of the line (00 back to 0y)


    Jim

提交回复
热议问题