473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

null reference in application object

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


Nov 17 '05 #1
2 1694
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" <jj*******@eartlink.net> wrote in message
news:VU******************@newsread1.news.atl.earth link.net...
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

Nov 17 '05 #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" <jj*******@eartlink.net> wrote in message
news:VU******************@newsread1.news.atl.earth link.net...
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Shannon | last post by:
I am having a very stange issue happen to my web application. I am trying to develop a simple shopping cart. The code works perfectly when I run the application under http://localhost/myapp. ...
16
by: Paul S. Natanson | last post by:
What is a Null Reference error and how do I fix it? My newly installed VB.Net2003 gives me a "Microsoft Development Environment" error message box EVERY time I try to run/start ANY project -...
2
by: Shannon | last post by:
I am having a very stange issue happen to my web application. I am trying to develop a simple shopping cart. The code works perfectly when I run the application under http://localhost/myapp. ...
6
by: David Lozzi | last post by:
Hello there, I'm getting the following error System.NullReferenceException: Object reference not set to an instance of an object. at shopping_bag.GetBagTotals()
11
by: MikeT | last post by:
This may sound very elementary, but can you trap when your object is set to null within the object? I have created a class that registers an event from an object passed in the constructor. When...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.