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 384:	templateBuilder.Append(ShowTopicAspxRewrite(topicid,0).ToString());
Line 385:	templateBuilder.Append("\">");
Line 386:	templateBuilder.Append(topic.Title.ToString().Trim());
Line 387:	templateBuilder.Append("</a> &raquo; <strong>回复主题</strong>\r\n");
Line 388:	templateBuilder.Append("	</div>\r\n");

Source File: e:\web\quanyuanorg\htdocs\aspx\1\postreply.aspx    Line: 386

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.aspx_1_postreply_aspx.OnInit(EventArgs e) in e:\web\quanyuanorg\htdocs\aspx\1\postreply.aspx:386
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974