Monday, March 19, 2018

Sitecore 9 commerce install fails while running "Get Token From Sitecore.IdentityServer" Step

Sitecore 9 commerce install PS fails as "GetIdServerToken : GetIdServerToken" step with below exception:


HTTP Error 500.19 - Internal Server Error
  The requested page cannot be accessed because the related configuration data for the page is invalid.



 Detailed Error Information:


    Module   IIS Web Core
    Notification   Unknown
    Handler   Not yet determined
    Error Code   0x8007000d
    Config Error   
Config File   \\?\C:\inetpub\wwwroot\SitecoreIdentityServer\web.config




    Requested URL   https://localhost:5050/connect/token
    Physical Path   
    Logon Method   Not yet determined
    Logon User   Not yet determined 


    Config Source:
       -1:
    0: 


 More Information:
  This error occurs when there is a problem reading the configuration file for the Web server or Web application. In
some cases, the event logs may contain more information about what caused this error.
  View more information » 

At C:\Program
Files\WindowsPowerShell\Modules\SitecoreInstallFramework\1.2.0\Public\Install-SitecoreConfiguration.ps1:253 char:21
+                     & $entry.Task.Command @paramSet | Out-Default
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration


To fix this, follow the below steps:

1. Make sure .NET Core SDK 2.x (https://www.microsoft.com/net/download/windows) is installed
2. Install Dotnetcore-2-windowshosting (https://aka.ms/dotnetcore-2-windowshosting) 
3. If the above installation was already done but before the IIS was installed, run a repair on the installation. 

To make sure the installation of DotNetCore is done as expected, open the Handler mapping in IIS for SitecoreIdentityServer and make sure you see aspNetCore module listed.


Rerun the Commerce installation. 

Hope this helps!


No comments:

Post a Comment