0

I have an ASP.NET web app I'm trying to run on a local IIS, but when I do so I get a BadImageFormatException. This happens even though all my projects are set to Any CPU. Nothing is wrong with the web app configuration; it runs just fine on my other PC, but on this laptop I get the error.

ekolis
  • 6,270
  • 12
  • 50
  • 101
  • Have you been through [Troubleshooting BadImageFormatException](https://stackoverflow.com/q/8996653/1115360)? – Andrew Morton Jul 26 '19 at 18:47
  • Web application bitness on IIS is controlled by application pool setting, not your project setting. – Lex Li Jul 27 '19 at 17:16
  • @LexLi Oh, that's interesting - I don't have the laptop on me at the moment, but I bet that was it! Next time I need to use the laptop I'll check that out... – ekolis Jul 31 '19 at 13:11

0 Answers0