null reference in application object

  • Thread starter Thread starter Jim Meisterich
  • Start date Start date
J

Jim Meisterich

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
 
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top