I am working on a Sitecore 9 solution which is hosted on Azure PaaS.
I have a simple piece of code that is meant to store an object in session which works fine on my local machine but once deployed to the Azure WebApp I get below exception:
Exception: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: mscorlib at System.Object.GetType() at Sitecore.SessionProvider.Redis.StackExchangeClientConnection.Eval(String script, String[] keyArgs, Object[] valueArgs) at Sitecore.SessionProvider.Redis.RedisConnectionWrapper.TryUpdateAndReleaseLockIfLockIdMatch(String sessionId, Object lockId, ISessionStateItemCollection data, Int32 sessionTimeout) at Sitecore.SessionProvider.Redis.RedisSessionStateProvider.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) at System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Has someone faced a similar issue in past and has an idea what needs to be done to fix it?
Regards, Pratik Thakker