Ask a Question related to ASP.NET General, Design and Development.
-
Marty Cruise #1
Unexplained Instance Error
I am getting the following error: " Object reference not
set to an instance of an object."
The strange thing is that I AM creating a new instance of
the object in the PageLoad event Iin the code behind)
just prior to using it's properties, and in fact, the app
ran perfectly until only recently when I installed
Project Server on the web server, which should have had
no impact.
Is there a security setting or something else that might
compromise instantiating classes? I'm lost.
Marty Cruise Guest
-
Unexplained ColdFusion Error Plz Help!!
I keep getting the following error each time I attempt to add a recordset to a database using an insertion form created in Dreamweaver, this is for... -
CF Instance and cfquery login error
We are trying to create a new instance and when we set up the database it verifies in the cfadmin, but when we go to look at the website, we get a... -
Is someone phoning home? Unexplained traffic on dial up
I am seeing some incoming and outgoing traffic on an idle dial up connection that I cannot pin down. If I dial into my ISP and don't do anything,... -
DBI1222W error when migrate the instance from 5.2 to 7.2
I want to migrate the instance "db2sp1" and issue: # ./db2imigr -u db2sp1 db2sp1 db2ckmig was successful. Database(s) can be migrated. ... -
Unexplained Performance Nightmare !!! Suggestions/solutions Please!!
27 Dec 2002 16:36:37 -0800, Dr Deadpan said (and I quote): IIRC, there was something about hints in embedded SQL in PL/SQL? They were ignored... -
Kevin Spencer #2
Re: Unexplained Instance Error
Without looking at your code, there is no way to tell.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Some things just happen.
Everything else occurs.
"Marty Cruise" <mCruise@noSpam.com> wrote in message
news:03ce01c34195$f3a168c0$a101280a@phx.gbl...> I am getting the following error: " Object reference not
> set to an instance of an object."
>
> The strange thing is that I AM creating a new instance of
> the object in the PageLoad event Iin the code behind)
> just prior to using it's properties, and in fact, the app
> ran perfectly until only recently when I installed
> Project Server on the web server, which should have had
> no impact.
>
> Is there a security setting or something else that might
> compromise instantiating classes? I'm lost.
>
>
>
Kevin Spencer Guest
-
Kevin Spencer #3
Re: Unexplained Instance Error
I'm not sure why you're not getting an error on the following line:
It should read (assuming that the New constructor for cOrder takes no> Public myOrder As New cOrder
arguments):
Public myOrder As New cOrder()
See if that doesn't fix it.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Some things just happen.
Everything else occurs.
"Marty Cruise" <mCruise@noSPam.com> wrote in message
news:09ea01c3419d$eeef31b0$a001280a@phx.gbl...> Here is the relevant code. The error occurs when the
> myOrder.getInfo method is called:
>
> =============================
> Imports cLib
>
> Public Class frmPrintTR
> Inherits System.Web.UI.Page
> Public myOrder As New cOrder
> Protected WithEvents lblShipTo As
> System.Web.UI.WebControls.Label
> Protected WithEvents Button1 As
> System.Web.UI.WebControls.Button
> Protected WithEvents Button2 As
> System.Web.UI.WebControls.Button
> Protected WithEvents btnPrint As
> System.Web.UI.WebControls.Button
> Protected WithEvents btnClose As
> System.Web.UI.WebControls.Button
> Protected WithEvents pDesiredVendor As
> System.Web.UI.WebControls.Panel
> Protected WithEvents pComments As
> System.Web.UI.WebControls.Panel
> Protected WithEvents pCommentsNone As
> System.Web.UI.WebControls.Panel
> Protected WithEvents pItemsNone As
> System.Web.UI.WebControls.Panel
> Protected WithEvents repItems As
> System.Web.UI.WebControls.Repeater
>
> ' # Region stuff omitted from this posting
>
> Private Sub Page_Load(ByVal sender As Object, ByVal e
> As System.EventArgs) Handles MyBase.Load
> If Request.QueryString("TRID") = "" Then
> Exit Sub
> End If
>
> myOrder.GetInfo(CInt(Request.QueryString("TRID")))
> repComments.DataSource = myOrder.Comments
> repComments.DataBind()
>
> =============================
>
>> that> >-----Original Message-----
> >Check your assumptions:
> >
> >if your control is actually there, does the
> >property/method you use reference yet another control> line?> >is not there?
> >
> >Are there other objects referenced on the offending> not> >and finally, have you used the debugger and stepped into
> >the routine causing the problem and checked the object
> >variables in question?
> >> >>-----Original Message-----
> >>I am getting the following error: " Object reference> of> >>set to an instance of an object."
> >>
> >>The strange thing is that I AM creating a new instance> app> >>the object in the PageLoad event Iin the code behind)
> >>just prior to using it's properties, and in fact, the> might> >>ran perfectly until only recently when I installed
> >>Project Server on the web server, which should have had
> >>no impact.
> >>
> >>Is there a security setting or something else that> >.> >>compromise instantiating classes? I'm lost.
> >>
> >>
> >>
> >>.
> >>
> >
Kevin Spencer Guest
-
-
David Waz.. #5
Unexplained Instance Error
try reading ALL posts to your answer and follow the
recommendations given...
>-----Original Message-----
>I am getting the following error: " Object reference not
>set to an instance of an object."
>
>The strange thing is that I AM creating a new instance of
>the object in the PageLoad event Iin the code behind)
>just prior to using it's properties, and in fact, the app
>ran perfectly until only recently when I installed
>Project Server on the web server, which should have had
>no impact.
>
>Is there a security setting or something else that might
>compromise instantiating classes? I'm lost.
>
>
>
>.
>David Waz.. Guest



Reply With Quote

