Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 111:		
Line 112:		
Line 113:                If Not IsNothing(oPC) AndAlso IsNothing(oPC.Param1) AndAlso oPC.Param1.trim.length > 0 AndAlso oPC.Param1.ToLower.Contains(query.Trim.Replace("&", "").Replace("?", "")) Then
Line 114:                    CType(sender, System.Web.HttpApplication).Context.RewritePath("~/" & oPC.Param1, False)
Line 115:                Else

Source File: D:\wwwroot\global.asax    Line: 113

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in D:\wwwroot\global.asax:113
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4682.0