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 204:<%
Line 205:	if(Main_xshortcut != "/" && Main_xshortcut != ""){
Line 206:		Main_xshortcut = Main_xshortcut.Substring(1,Main_xshortcut.Length-2).Replace("/", ",");
Line 207:		
Line 208:		queryString = "select * from " + TableShortCut + " where xpublish = 'yes' and xupfile != '' and pid in (" + Main_xshortcut + ") order by xorder asc";

Source File: c:\WebSite\ToshibaWeb\chinese\01_product\01_downloads_04.aspx    Line: 206

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.chinese_01_product_01_downloads_04_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\WebSite\ToshibaWeb\chinese\01_product\01_downloads_04.aspx:206
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4238


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