473,403 Members | 2,323 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,403 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 1695
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.