The CoBe
The CoBe

Reputation: 63

Windows 11 ARM - Visual studio IIS Express crash

I have a Windows 11 Pro(Version 22H2) 64bit ARM VM created with Parallels (Version 18.0.1 (53056))
I installed net core 5 and 6 for ARM (SDK and hosting bundle)
I created a new net core web application but when I start debug IIS Express didn't start and event viewer error is:

The Module DLL 'C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll' could not be loaded due to a configuration problem. The current configuration only supports loading images built for a AMD64 processor architecture

I tried to change app URL port number, delete .vs folder and IIS debug instead of IIS Express

Always the same error

Upvotes: 1

Views: 1144

Answers (1)

Lex Li
Lex Li

Reputation: 63254

I wrote a very detailed article on Windows 11 ARM64 full IIS and ASP.NET Core. But the IIS Express scenario seems to be different.

Will go back to make a complete answer when I have time to finish more investigation.

A few interesting facts so far for future readers,

  1. C:\Program Files\IIS Express\iisexpress.exe is ARM64X executable.
  2. ASP.NET Core module files under C:\Program Files\IIS Express\Asp.Net Core Module\V2\ are pure ARM64.
  3. Based on the error message posted by you, C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll was likely to be pure ARM64, while the IIS Express worker process seemed to be running as x64.

You will have to provide more information like what exactly you installed on this VM, because

  • .NET 5/6 do not have ARM64 support, so installing them only add x64 bits to C:\Program Files\IIS\Asp.Net Core Module\V2. That is contradictory to 3. My guess is somehow you got .NET 7 bits installed.
  • Also interesting why your IIS Express worker process tried to load ASP.NET Core module bits from C:\Program Files\IIS\Asp.Net Core Module\V2. That makes no sense as if you read C:\Program Files\IIS Express\AppServer\applicationhost.config (template for VS to create all other config files) it points to C:\Program Files\IIS Express\Asp.Net Core Module\V2 by default. There must be something you didn't reveal before hitting this issue.

You didn't mention the Visual Studio release you were using either. That might also contribute to the problem.

Upvotes: 0

Related Questions