Sitecore Commerce 10 Bootstrapping Error: IIS 10.0 Detailed Error - 500.21 - Internal Server Error - IIS core does not recognize the module.

Check my 502.5 Process failure error blog article  that is related to this error but inclined towards identity server.  Once I resolved that error, installed Sitecore 10 using SIA then started Commerce installation, I hit this error.  Enough of this and that, let me get to the actuals.

The error occurs during the bootstrapping step (step 185). I'm running Visual Studio 2019 Community edition based on aspnetcorev2 dependent on Windows bundler 3.1.9 released on 13th oct 2020. Here are the details -



Note that the above Visual Studio 2019  installation also adds 2.1.23 bundle. You can check the installed bundler versions under C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App -



So, the point is, commerce bootstrapping step doesn't like the 3.1.9 bundler and literally spat this red blood right on my face but thank god, the screen blocked it!

Anyway, the solution is, 

In case of Sitecore 10 Commerce, install windows bundler 3.1.8 (or below that supports aspnetcorev2 and aspnetcore) since it is self-contained to handle both tasks.

Note that VS 2019  Community edition that uses 3.1.9  sits fine side-by-side with 3.1.8 bundler version needed for commerce installation.



Detailed Error:

[----- CommerceEngine-Initialize_BootStrapCommerceServices : BootStrapCommerceServices -------------------------------] VERBOSE: Resolving ConfigFunction extension 'concat'                                                                    VERBOSE: Resolved 'Invoke-ConcatConfigFunction'                                                                         VERBOSE: Resolving ConfigFunction extension 'concat'                                                                    VERBOSE: Resolved 'Invoke-ConcatConfigFunction'                                                                         VERBOSE: Invoke-ConcatConfigFunction                                                                                    VERBOSE: Concatenating: https://commerceops. scomm10sc.com                                                              VERBOSE: Result: https://commerceops.scomm10sc.com                                                                      VERBOSE: Invoke-ConcatConfigFunction                                                                                    VERBOSE: Concatenating: https://commerceops.scomm10sc.com /commerceops/Bootstrap()                                      VERBOSE: Result: https://commerceops.scomm10sc.com/commerceops/Bootstrap()                                              BootStrapping Commerce Services: https://commerceops.scomm10sc.com/commerceops/Bootstrap()                              VERBOSE: POST https://commerceops.scomm10sc.com/commerceops/Bootstrap() with 0-byte payload                             Install-SitecoreConfiguration :                                                                                                                                                                                                                                                                                                                                         IIS 10.0 Detailed Error - 500.21 - Internal Server Error                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  HTTP Error 500.21 - Internal Server Error                                                                               Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list                                                                                                                                                                                                                                                                      Most likely causes:                                                                                                            Managed handler is used; however, ASP.NET is not installed or is not installed completely.      There is a      typographical error in the configuration for the handler module list.   During application initialization, either the   application initialization feature has set skipManagedModules to true, or a rewrite rule is setting a URL that maps to  a managed handler and is also setting SKIP_MANAGED_MODULES=1.                                                                                                                                                                                                                                                                                                                                                                                                                                    Things you can try:                                                                                                            Install ASP.NET if you are using managed handler.       Ensure that the handler module's name is specified correctly.                                                                                                                   Module names are case-sensitive and use the format                                                                      modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".        Ensure that any application initialization                                                                                                                      rewrite rules set SKIP_MANAGED_MODULE=0 when setting a URL that maps to a managed handler (such as .aspx, for           example.)       As an alternative, ensure that application initialization rewrite rules map the request to an unmanaged handler (for example, to an .htm file, which is mapped to the StaticFileHandler.)                                                                                                                                                                                                                                                                                                                                                                                                               

 Detailed Error Information:



    Module   IIS Web Core

    Notification   ExecuteRequestHandler

    Handler   aspNetCore

    Error Code   0x8007000d






    Requested URL   https://commerceops.scomm10sc.com:443/commerceops/Bootstrap()

    Physical Path   C:\inetpub\wwwroot\CommerceOps_scomm10sc\commerceops\Bootstrap()

    Logon Method   Anonymous

    Logon User   Anonymous









 More Information:

  IIS core does not recognize the module.

  View more information »







At C:\sitecore\Sitecore.Commerce.WDP.2020.08-6.0.238\SIF.Sitecore.Commerce.5.0.49\scomm10sc.dev.local_Install_Script.ps

1:290 char:2

+     Install-SitecoreConfiguration @deployCommerceParams -Verbose *>&1 ...

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration


[TIME] 00:11:43

Invoke-RestMethod :



IIS 10.0 Detailed Error - 500.21 - Internal Server Error









  HTTP Error 500.21 - Internal Server Error

  Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list



 Most likely causes:

        Managed handler is used; however, ASP.NET is not installed or is not installed completely.      There is a

typographical error in the configuration for the handler module list.   During application initialization, either the

application initialization feature has set skipManagedModules to true, or a rewrite rule is setting a URL that maps to

a managed handler and is also setting SKIP_MANAGED_MODULES=1.




 Things you can try:

        Install ASP.NET if you are using managed handler.       Ensure that the handler module's name is specified correctly.

Module names are case-sensitive and use the format

modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".        Ensure that any application initialization

rewrite rules set SKIP_MANAGED_MODULE=0 when setting a URL that maps to a managed handler (such as .aspx, for

example.)       As an alternative, ensure that application initialization rewrite rules map the request to an unmanaged

handler (for example, to an .htm file, which is mapped to the StaticFileHandler.)





 Detailed Error Information:



    Module   IIS Web Core

    Notification   ExecuteRequestHandler

    Handler   aspNetCore

    Error Code   0x8007000d






    Requested URL   https://commerceops.scomm10sc.com:443/commerceops/Bootstrap()

    Physical Path   C:\inetpub\wwwroot\CommerceOps_scomm10sc\commerceops\Bootstrap()

    Logon Method   Anonymous

    Logon User   Anonymous









 More Information:

  IIS core does not recognize the module.

  View more information »







At C:\sitecore\Sitecore.Commerce.WDP.2020.08-6.0.238\SIF.Sitecore.Commerce.5.0.49\Modules\InitializeCommerce\Initialize

Commerce.psm1:121 char:5

+     Invoke-RestMethod $UrlCommerceOpsServicesBootstrap -TimeoutSec 12 ...

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc

   eption

    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand



Comments

Popular Posts