null reference in application object

Discussion in 'ASP .Net' started by Jim Meisterich, Oct 22, 2003.

  1. I am trying to move an application that i created to my isp. My application
    runs on my local machine. Howerever I am gettting a null reference point to
    an application variable I created.

    In my default.aspx page I have the following line in my page load event

    TextBox1.Text = Application["BaseURL"].ToString();

    This triggers the
    Object reference not set to an instance of an object.
    error.

    Could there be something wrong with the way my isp has configured my asp.net
    application? Any help is appreciated.

    regards,
    Jim Meisterich
    Jim Meisterich, Oct 22, 2003
    #1
    1. Advertising

  2. Apparently, the variable has not been intitialized. Where do you create it?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    Big Things are made up of
    Lots of Little Things.

    "Jim Meisterich" <> wrote in message
    news:VUBlb.14120$...
    > I am trying to move an application that i created to my isp. My

    application
    > runs on my local machine. Howerever I am gettting a null reference point

    to
    > an application variable I created.
    >
    > In my default.aspx page I have the following line in my page load event
    >
    > TextBox1.Text = Application["BaseURL"].ToString();
    >
    > This triggers the
    > Object reference not set to an instance of an object.
    > error.
    >
    > Could there be something wrong with the way my isp has configured my

    asp.net
    > application? Any help is appreciated.
    >
    > regards,
    > Jim Meisterich
    >
    >
    >
    >
    Kevin Spencer, Oct 22, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    16
    Views:
    7,328
    Mike Schilling
    Oct 12, 2005
  2. Replies:
    5
    Views:
    26,622
    Mike Schilling
    Mar 29, 2006
  3. Replies:
    1
    Views:
    477
    Mark Rae [MVP]
    Sep 20, 2007
  4. Cirene
    Replies:
    1
    Views:
    809
    Alexey Smirnov
    Jun 9, 2008
  5. putty
    Replies:
    1
    Views:
    254
    putty
    Apr 5, 2005
Loading...

Share This Page