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 20:             <td align="center" bgcolor='#333333'><strong><font color='#FFFFFF'>System</font></strong></td>
Line 21:             <% End If %>
Line 22:             <% If country.ToString.Length>0 Then %>
Line 23:             <td align="center" bgcolor='#333333'><strong><font color='#FFFFFF'>Country</font></strong></td>
Line 24:             <% End If %>

Source File: D:\rococom\productDescription.aspx    Line: 22

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.productdescription_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in D:\rococom\productDescription.aspx:22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +114
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +239
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +252
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +86
   FormRewriterControlAdapter.Render(HtmlTextWriter writer) in D:\rococom\App_Code\FormRewriter.vb:7
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +11159610
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +52
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +239
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +239
   System.Web.UI.Page.Render(HtmlTextWriter writer) +37
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062