A
amitbadgi
I am getting this error for a file while converting an asp application
to asp.net
Object variable or With block variable not set.
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 variable or
With block variable not set.
Source Error:
Line 166: </tr>
Line 167: <% Dim rs As Object
Line 168: If Not rs.EOF Then
Line 169: Do While Not rs.EOF
Line 170:
Source File: C:\Documents and
Settings\amit\WebSite1\reports\default.aspx Line: 168
Stack Trace:
[NullReferenceException: Object variable or With block variable not
set.]
Microsoft.VisualBasic.CompilerServices.Container..ctor(Object
Instance) +232124
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +142
ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in C:\Documents and
Settings\amit\WebSite1\reports\default.aspx:168
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +27
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +53
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +280
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+8878
Thanks in advance
to asp.net
Object variable or With block variable not set.
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 variable or
With block variable not set.
Source Error:
Line 166: </tr>
Line 167: <% Dim rs As Object
Line 168: If Not rs.EOF Then
Line 169: Do While Not rs.EOF
Line 170:
Source File: C:\Documents and
Settings\amit\WebSite1\reports\default.aspx Line: 168
Stack Trace:
[NullReferenceException: Object variable or With block variable not
set.]
Microsoft.VisualBasic.CompilerServices.Container..ctor(Object
Instance) +232124
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +142
ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in C:\Documents and
Settings\amit\WebSite1\reports\default.aspx:168
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +27
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +53
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +280
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+8878
Thanks in advance