May 4, 2019

OutOfMemory Error during Solr index rebuilding

Sometimes we face OutOfMemory Error while rebuilding indexes for Sitecore. The heap size of Solr default is 512 MB. We can change this valu...

Sometimes we face OutOfMemory Error while rebuilding indexes for Sitecore. The heap size of Solr default is 512 MB. We can change this value by specifying the size in "solr.cmd" file.
You can find "solr.cmd" file inside the bin folder.

See below screen for more details.


May 3, 2019

SitecoreRootCert do not found warning

SIF constantly throwing me below error while installing Sitecore Commerce 9.0.2. According to warning, SitecoreRootCert is not a...

SIF constantly throwing me below error while installing Sitecore Commerce 9.0.2.



According to warning, SitecoreRootCert is not available in cert:\LocalMachine\Root.
Open Manage Computer certificates and check SitecoreRootCert  is available or not.

I checked and it was not available in that location. what I did just moved SitecoreRootCert  to this location and error gone (missing SitecoreRootCert).



May 2, 2019

Switching SitecoreInstallFramewrok Versions

If We have installed multiple versions of SitecoreInstallFramework and we want to specific one for particular session. We can force PowerShe...

If We have installed multiple versions of SitecoreInstallFramework and we want to specific one for particular session.

We can force PowerShell session to use the specific SitecoreInstallFramework version.

Remove-Module -Name SitecoreInstallFramework
Import-Module -Name SitecoreInstallFramework -RequiredVersion 1.2.1

Now in current session SitecoreInstallFramework  1.2.1 will be in use.

May 1, 2019

How to delete thumbprint

Sometimes we face already exist thumbprint exception during Sitecore installation. We can delete thumbprint using below command. ...

Sometimes we face already exist thumbprint exception during Sitecore installation.

We can delete thumbprint using below command.

Execute below command on PowerShell window.
Get-ChildItem Cert:\LocalMachine\Root\<Thumbrpint> | Remove-Item

April 8, 2019

Disable AntiForgeryEnabled option to run Commerce API Calls

To execute Commerce API through  Postman, we need to disable "AntiForgeryEnabled" in Config.json. You can get this file on path C...

To execute Commerce API through  Postman, we need to disable "AntiForgeryEnabled" in Config.json.

You can get this file on path CommerceAuthoring_InstanceName > wwwroot.









This option should always be enabled in the Production environment.

January 2, 2019

Oops output question

What would be output of following program ? class Program     {         static void Main( string [] args)         {          ...

What would be output of following program ?

class Program
    {
       
static void Main(string[] args)
        {
            Student student =
new Student();
            Show(student);
            Display(student);
            student.P2 =
"Main";
            Console.WriteLine(student.P +
" == " + student.P1 + " == " + student.P2 + " " + student.GetHashCode());
            Console.ReadLine();
        }

       
static void Show(Student student)
        {
           
var localStudent = student;
            localStudent.P =
"Show";
        }
       
static void Display(Student student)
        {
           
var localStudent = student;
            localStudent.P1 =
"Display";
        }
    }

   
public class Student
    {
       
public string P;
       
public string P1;
       
public string P2;
    }

 

Output :

Show == Display == Main 46104728 - Random Address

January 1, 2019

Disable SSL Certificate Verification in Postman

SSL certificate verification option prevents the postman from checking the validity of SSL certificates while making a request. We can dis...

SSL certificate verification option prevents the postman from checking the validity of SSL certificates while making a request.
We can disable this option from File > Settings in Postman app.
Just make it off "SSL certificate verification" in Settings > General section.

See below screen for reference.