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 33: 		
Line 34: 		if Not IsNumeric(Convert.ToInt64(Request.Querystring("l"))) OR Request.Querystring("l") = 0 then
Line 35: 		      if Not IsNumeric(Request.Cookies("l").Value) OR Request.Cookies("l").Value = 0 then
Line 36: 		          languageid = 1
Line 37: 			 else

Source File: C:\Inetpub\vhosts\africa2trust.com\httpdocs\a2t\Ctls\CtlInvestmentOpportunities.ascx    Line: 35

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.a2t_ctls_ctlinvestmentopportunities_ascx.BindVariables() in C:\Inetpub\vhosts\africa2trust.com\httpdocs\a2t\Ctls\CtlInvestmentOpportunities.ascx:35
   ASP.a2t_ctls_ctlinvestmentopportunities_ascx.page_Load() in C:\Inetpub\vhosts\africa2trust.com\httpdocs\a2t\Ctls\CtlInvestmentOpportunities.ascx:12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9874353
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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