CINXE.COM
Object reference not set to an instance of an object.
<html> <head> <title>Object reference not set to an instance of an object.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Object reference not set to an instance of an object.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>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. <br><br> <b> Exception Details: </b>System.NullReferenceException: Object reference not set to an instance of an object.<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> Line 130: hm2.Name = "description"; Line 131: string cat = Request.QueryString["cat"].ToString(); <font color=red>Line 132: string subcat = Request.QueryString["subcat"].ToString(); </font>Line 133: XmlDocument xDoc = new XmlDocument(); Line 134: xDoc.Load(Server.MapPath("~/App_Data/categorydl.xml"));</pre></code> </td> </tr> </table> <br> <b> Source File: </b> c:\inetpub\vhosts\dubaiexporters.com\httpdocs\searchsubcat.aspx.cs<b> Line: </b> 132 <br><br> <b>Stack Trace:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> [NullReferenceException: Object reference not set to an instance of an object.] searchsubcat.getMetatags() in c:\inetpub\vhosts\dubaiexporters.com\httpdocs\searchsubcat.aspx.cs:132 searchsubcat.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\dubaiexporters.com\httpdocs\searchsubcat.aspx.cs:58 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41 System.Web.UI.Control.OnLoad(EventArgs e) +131 System.Web.UI.Control.LoadRecursive() +65 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427 </pre></code> </td> </tr> </table> <br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062 </font> </body> </html> <!-- [NullReferenceException]: Object reference not set to an instance of an object. at searchsubcat.getMetatags() in c:\inetpub\vhosts\dubaiexporters.com\httpdocs\searchsubcat.aspx.cs:line 132 at searchsubcat.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\dubaiexporters.com\httpdocs\searchsubcat.aspx.cs:line 58 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.searchsubcat_aspx.ProcessRequest(HttpContext context) in c:\inetpub\vhosts\dubaiexporters.com\tmp\root\d74f8fe5\373ed5b8\App_Web_dmbfghyd.2.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->