Implement SSO with Sitecore 9.3 for front end login

Recently I came across a requirement where client wanted to implement SSO across the websites. This was not for Sitecore login users but for website/end users. So I discussed this with my colleagues in Valtech and decided that we can use SAML/ OpenID/Auth0 as a protocol layer and Okta for identity management. Meanwhile I also … Continue reading Implement SSO with Sitecore 9.3 for front end login

Sponsored Post Learn from the experts: Create a successful blog with our brand new courseThe WordPress.com Blog

Are you new to blogging, and do you want step-by-step guidance on how to publish and grow your blog? Learn more about our new Blogging for Beginners course and get 50% off through December 10th.

Sitecore 8.1 update2 WFFM form Checkbox list not appearing in Email

In one of the WFFM Contact Us form we have checkbox list. On submitting this form, an email is triggered to the respective business unit and to the user with the form details that he has submitted. Now the problem was that if you select only one item in the checkbox list field then everything … Continue reading Sitecore 8.1 update2 WFFM form Checkbox list not appearing in Email

Sitecore commerce- update local certificates

Recently while working with Sitecore commerce 9 project I came across a situation where products stop appearing on the Live website. After checking the Sitecore logs, I realized that the client was using self signed certificates on the Live servers. Our next step was to bring the site back to normal asap as it would … Continue reading Sitecore commerce- update local certificates

Error with registering a user in Sitecore commerce 9.0.2 scaled environment

ERROR SQL:block:addlistentities.Error: Message=Communication with the underlying transaction manager has failed.|Trace= at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) I was facing this error when I tried to setup registration page for my sitecore commerce website. Initially I thought that there is some incorrect connection string configured in any one of the policies, so I verified all the json files in … Continue reading Error with registering a user in Sitecore commerce 9.0.2 scaled environment

Windows could not start the solr service on local computer. The service did not return an error

Last week I faced an issue while configuring solr on my windows 10 machine the error occurred when I was configuring solr 7.2.1 as a windows service using nssm. I followed https://sitecoreazuremvc.wordpress.com/2019/01/08/solr-7-2-1-installation-guide/ to install solr I ran PS D:\solr\nssm-2.24\win64> .\nssm.exe install solr721 command in Power shell and then NSSM window popes up. Next I filled … Continue reading Windows could not start the solr service on local computer. The service did not return an error

HTML Caching issue in multilingual website |Configure HTML Caching in multi lingual website

  I came across a issue where due to custom HTML caching, the pages worked incorrectly as I switched from one language to another. This was due to the Key that was used for caching. I was using a key name for example "Banner_cache_key" . As this does not have a unique identifier for each … Continue reading HTML Caching issue in multilingual website |Configure HTML Caching in multi lingual website

Cache NOT getting cleared on Publishing item from Sitecore CMS |Sitecore Remote Events not Executing

I was facing an issue where cache was not getting cleared from Live server when any item is published from CM server. On investigating I found that EQ Stamp value was not getting updated in Properties table(Web DB) on publishing from CMS. EQ stamp value has the time stamp information about last time event queue … Continue reading Cache NOT getting cleared on Publishing item from Sitecore CMS |Sitecore Remote Events not Executing

SQL Server Provider for Windows PowerShell is not installed.

If you are using SQL SERVER 2017 then you have overwrite SIF/Sitecore.Commerce.1.0.1748\Modules\DeployCommerceDatabase\DeployCommerceDatabase.psm1 file . download the file from https://gitlab.com/viet.hoang/workshop/raw/master/Scripts%20for%20Sitecore%20Commerce%20901/DeployCommerceDatabase.psm1 and replace it with file mentioned above. Please make sure that you do not replace the file, you have to copy the contents from the new file (excluding the signature part) and replace it in the … Continue reading SQL Server Provider for Windows PowerShell is not installed.

Bundling and minification in Sitecore MVC

Multiple Javascripts and CSS files degrade the performance of production website and also increase the load time of webpages as it requires multiple HTTP requests from browser to server. Bundling and minification are two practices that improve page load times by decreasing both the number of server requests and the size of static asset files. … Continue reading Bundling and minification in Sitecore MVC

Error: Login is required, but no valid login page has been specified for the site (login) | Error due to Global.asax

On investigating I found that the Global.asax.cs file was inheriting from System.Web.HttpApplication public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { BundleConfig.RegisterBundles(BundleTable.Bundles); } } Ideally, all sitecore applications must inherit from Sitecore.Web.Application as shown below public class MvcApplication : Sitecore.Web.Application { protected void Application_Start() { BundleConfig.RegisterBundles(BundleTable.Bundles); } }

Sitecore WFFM as a POP-UP form implementation

We had a requirement where on click of a button a form should popup. Then, the user should be able to fill the form and submit. For this you will have to create a form template (.ascx or cshtml file) div class="modal fade wffm" id="PopUp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> div class="modal-dialog modal-lg" role="document"> div class="modal-content"> div … Continue reading Sitecore WFFM as a POP-UP form implementation

Exception: Sitecore.XConnect.XdbCollectionUnavailableException Message: The HTTP response was not successful: Forbidden | Sitecore 9 experience profile data empty

This issue is basically due to a Non Self Signed Certificates present in Trusted Root certificates. The solution is to move the Certificate to Intermediate CA or delete it if it is not required. To do so follow the steps below. Step 1: Step 2: Step 3: Select Certificates. click on OK and the choose on … Continue reading Exception: Sitecore.XConnect.XdbCollectionUnavailableException Message: The HTTP response was not successful: Forbidden | Sitecore 9 experience profile data empty

create database permission denied in database ‘master’| powershell script

This error logs when a user that is trying to create the database doesn't have the appropriate permissions. check if the user account has “dbcreator” role. In my case user account 'BUILTIN\Users' and 'collectionuser' did not have 'dbcreator' server role. To assign dbcreator role to a user follow the steps below. Expand “Security tab” then … Continue reading create database permission denied in database ‘master’| powershell script

HTTP Error 500.19 – Internal Server Error | https://localhost:5050/connect/token | Sitecore Commerce installation 9.0.3

I faced this error while installing Sitecore commerce 9.0.3 using SIF. To fix this error you can follow the steps below. Check if Handler mapping in IIS is present for SitecoreIdentityServer website. For this double click the Handler Mapping icon and check if aspNetCore module is listed. If it throws a popup window with error … Continue reading HTTP Error 500.19 – Internal Server Error | https://localhost:5050/connect/token | Sitecore Commerce installation 9.0.3

Could not load file or assembly or one of its dependencies|Dependent assembly configuration

This issue basically occurs if the referenced dll is either not present in the bin folder or the it is not of the correct version. For Example: I was getting an error, Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match … Continue reading Could not load file or assembly or one of its dependencies|Dependent assembly configuration

Get Token From Sitecore.IdentityServer Install-SitecoreConfiguration : IIS 10.0 Detailed Error – 500.19 – Internal Server Error 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   localhost:5050/…/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.0.2\Public\Install-SitecoreConfiguration.ps1:253 char:6 + & $entry.Task.Command @paramSet | Out-Default + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration [TIME] 00:00:00 https://localhost:5050/connect/token

If you are facing the same issue then you also have forgotten to install IIS URL Rewrite module. I also faced the same issue while installing Sitecore commerce 9.0.3 in my system but when I installed url rewrite module 2.1 and started the installation again the error vanished. You can download it from here http://www.iis.net/downloads/microsoft/url-rewriteContinue reading Get Token From Sitecore.IdentityServer Install-SitecoreConfiguration : IIS 10.0 Detailed Error – 500.19 – Internal Server Error 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   localhost:5050/…/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.0.2\Public\Install-SitecoreConfiguration.ps1:253 char:6 + & $entry.Task.Command @paramSet | Out-Default + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration [TIME] 00:00:00 https://localhost:5050/connect/token

One or more exceptions occurred while processing the subscribers to the ‘item:saved’ event. body {font-family:”Verdana”;font-weight:normal;font-size: .7em;color:black;} p {font-family:”Verdana”;font-weight:normal;color:black;margin-top: -5px} b {font-family:”Verdana”;font-weight:bold;color:black;margin-top: -5px} H1 { font-family:”Verdana”;font-weight:normal;font-size:18pt;color:red } H2 { font-family:”Verdana”;font-weight:normal;font-size:14pt;color:maroon } pre {font-family:”Consolas”,”Lucida Console”,Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } }

I tried installing the package “Sitecore Commerce ExperienceAnalytics Core 11.2.83.zip” manually in sitecore using the http://storefront.local/SiteUtilityPages/InstallModules.aspx?modules= url and got above error The solution to this problem is to comment out the item:saved event. Follow the steps below Navigate to the web site path “\App_Config\Sitecore\ExperienceAnalytics\Sitecore.ExperienceAnalytics.Client.config”. Open the file and find the following xml configuration section <event … Continue reading One or more exceptions occurred while processing the subscribers to the ‘item:saved’ event. body {font-family:”Verdana”;font-weight:normal;font-size: .7em;color:black;} p {font-family:”Verdana”;font-weight:normal;color:black;margin-top: -5px} b {font-family:”Verdana”;font-weight:bold;color:black;margin-top: -5px} H1 { font-family:”Verdana”;font-weight:normal;font-size:18pt;color:red } H2 { font-family:”Verdana”;font-weight:normal;font-size:14pt;color:maroon } pre {font-family:”Consolas”,”Lucida Console”,Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } }

Install-SitecoreConfiguration : Command C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe returned a non-zero exit code – (-1) | Sitecore 9 Installation | Alter database error while installing Sitecore 9

This issue occurs when try to re-install Sitecore 9 with the same instance name. So what happens is that the powershell script tries to drop the databases created earlier. Before deleting the DBs for some reason it tries to set the database containment value in which it fails. Therefore, it throws an error. The solution … Continue reading Install-SitecoreConfiguration : Command C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe returned a non-zero exit code – (-1) | Sitecore 9 Installation | Alter database error while installing Sitecore 9

“This access control list is not in canonical form and therefore cannot be modified.”

I faced this issue while installing sitecore commerce 9.0.3 in my local system. My issue occurred while publishing applicarion to IIS. This is basically a persmission issue. Follow the steps below to resolve this error. Open the Command prompt (CMD) in admin mode and execute the following two statements icacls.exe C:\inetpub\wwwroot /verify /T /C /L … Continue reading “This access control list is not in canonical form and therefore cannot be modified.”

Attempt to set permissions failed. Error: System.Management.Automation.MethodInvocationException

This is mostly due to permission restrictions to a folder. Make sure IIS_USERS , Network Service have full access to the folder. I faced this issue while installing sitecore commerece 9.0.3 and was able to resolve it after assigning appropriate permission to C:\inetpub\wwwroot\CommerceOps_Sc9 folder. If you facing the same issue then check if the permissions … Continue reading Attempt to set permissions failed. Error: System.Management.Automation.MethodInvocationException

Install-SitecoreConfiguration : Unable to parse [variable(‘Customers.Root’)] – Exception calling “Evaluate” with “2” argument(s): “The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Unable to parse [joinpath(variable(‘Solr.Server’), variable(‘Customers.Name’))] – Exception calling

This issue occurs while installing Sitecore Commerce. Check if Solr root path is specified correctly in install.ps1. Also check if solr service is configured.

Add WFFM forms folder for each website |Overide forms root attribute | forms root attribute not working for each website

I was facing an issue where even after adding forms root attribute to each site definition, when I created a new form, it was getting added under System>Modules rather that getting added under each website node. To overcome this issue I had to overide the default forms root attribute. To overide forms root attribute follow … Continue reading Add WFFM forms folder for each website |Overide forms root attribute | forms root attribute not working for each website

Enable Analytics for Sitecore 8.2 | Rule based Personalisation Not Working | Sitecore Default rules not working

There are two settings that have to be enabled In Sitecore.Xdb.config file under include folder <setting name="Xdb.Enabled" value="true" /> <setting name="Xdb.Tracking.Enabled" value="true" /> There is no need to add <setting name="Analytics.Enabled" value="true" /> in Sitecore.analytics.config Also, Make sure that Mongodb is up.   For Sitecore 8 : Set <setting name="Analytics.enabled" value="true"/> in Sitecore.Analytics.config file