Unexplained Instance Error

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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,...
    4. 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. ...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default Re: Unexplained Instance Error

    I'm not sure why you're not getting an error on the following line:
    > Public myOrder As New cOrder
    It should read (assuming that the New constructor for cOrder takes no
    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()
    >
    > =============================
    >
    >
    > >-----Original Message-----
    > >Check your assumptions:
    > >
    > >if your control is actually there, does the
    > >property/method you use reference yet another control
    > that
    > >is not there?
    > >
    > >Are there other objects referenced on the offending
    > line?
    > >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
    > 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

  5. #4

    Default Re: Unexplained Instance Error

    Error still occurs...
    Marty Cruise Guest

  6. #5

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139