Running IIS Express in 32-bit crashes my ASP.NET Core web application

1.5k Views Asked by At

I have an ASP.NET Core web application which I'm trying to run in 32-bit with IIS Express. I followed other guides and tips to make IIS run in 32-bit, but every time i try to run the application it crashes with the error message:

System.BadImageFormatException: Could not load file or assembly. An attempt was made to load a program with an incorrect format.

I have tried the following:

Set the build and debug to run x86 32bit IIS Express image 1

32bit IIS Express image 2

And unchecked the Use the 64 bit version of IIS Express for web sites and projects 32bit IIS Express image 3

But my project still closes almost immediately with the error mention above. Is there a setting that I am forgetting about or something else I need to do before the project can run in 32-bit.

I'm using visual studio 2017 on Windows 10 with IIS Express version 10.0.14393.0 and AspNetCore 2.1

0

There are 0 best solutions below