System.BadImageFormatException on running ServiceStack examples.

前端 未结 2 1116
遥遥无期
遥遥无期 2020-12-18 01:46

I am trying to run ServiceStack Examples projects. When I run the web client I am getting the following error:

{System.BadImageFormatException: An attempt wa         


        
2条回答
  •  被撕碎了的回忆
    2020-12-18 01:53

    Set the platform target of your main project to x86 to fix this. This can be done under Project... -> Properties -> Build.

    SqlLite is most likely a 32-bit components, and to be able to load it your application needs to be a 32-bit application as well (64-bit processes cannot load 32-bit components and vice versa).

提交回复
热议问题