development – CSOM-Sharepoint online console app c# ‘ServerVersion’ threw an exception of type ‘Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException’

I am developing a simple code to retrieve item from Sharepoint online List.

But on debug, I found an exception is thrown saying ServerVersion 'ServerVersion' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException' System.Version {Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException}

This Error comes after this using (ClientContext context = new ClientContext(siteurl)) line of code,
I have declared url in the variable siteurl before this line.

I do not know what causes this issue. On searching few things in online, few suggestions were to use context.ExecuteQuery() after Loading web or list like context.Load(List). But in my case I got the error at the initial stage of connection.

I need help to analyze and solve the issue.