Developer forum

Forum » Development » Object reference Error on Dynamicweb.Analytics.Experiments.Experiment.GetExperimentByPageID(Int32 PageID)

Object reference Error on Dynamicweb.Analytics.Experiments.Experiment.GetExperimentByPageID(Int32 PageID)

Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

DW Version 9.12.2 , did we miss any configuration? the solution is upgraded from 9.10.* to 9.12.2

This is not happen always...

Full Error :- 2021-11-24 20:48:32.869: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.Analytics.Experiments.Experiment.GetExperimentByPageID(Int32 PageID)
at Dynamicweb.Analytics.Experiments.Tracker.Track(Int32 pageID)
at Dynamicweb.Frontend.PageView.Load()
at Dynamicweb.AspNet.DynamicwebHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2021-11-24 20:48:32.874: Request headers: [   "Connection",   "Accept",   "Accept-Encoding",   "Accept-Language",   "Cookie",   "Host",   "Referer",   "User-Agent",   "sec-ch-ua",   "sec-ch-ua-mobile",   "sec-ch-ua-platform",   "upgrade-insecure-requests",   "sec-fetch-site",   "sec-fetch-mode",   "sec-fetch-user",   "sec-fetch-dest" ]
2021-11-24 20:48:32.874: Request item keys: [   "DynamicwebLiveIntegrationIsIntegrationActive",   "owin.Environment",   "EcomCart:CustomCartContext",   "MS_HttpRequestMessage",   "AspSession",   "PermissionContextStack",   "Dynamicweb.OMC.VisitorEngagementSettings.Config",   "Dynamicweb.OMC.VisitContext",   "AspSessionIDManagerInitializeRequestCalled",   "alternateUrlKey",   "ExecutionTableMapper",   {},   "DWPAGEVIEW",   "Dynamicweb.Environment.Web",   "Dynamicweb.Tracking.Tracker" ]
2021-11-24 20:48:32.874: Request form: []


Replies

 
Nicolai Pedersen
Reply

Ensure that OMCExperiment table is empty or do not contain refernces to pages that does not exist...

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

HI Nicolai

it's blank already

 

You must be logged in to post in the forum