Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 16th, 2005, 6:42 PM   #1
wright45
Newbie
 
Join Date: Jan 2005
Posts: 5
Rep Power: 0 wright45 is on a distinguished road
Application Object not instantiaded error?

I'm getting an ...

"Object reference not set to an instance of an object. " on this line...

Line 26: string ControlPath = "/" + Application["BaseHREF"].ToString() + "Controls/";

When I try to load my Web Application from a browser.

This code is inside a class derived from System.Web.UI.Page which has a Application attribute (or whatever) .
As far as I understand this attribute will be instatiated as long as there is one active Session of the Page .

Any ideas why I get this error, am I missing something.
wright45 is offline   Reply With Quote
Old Feb 16th, 2005, 7:07 PM   #2
wright45
Newbie
 
Join Date: Jan 2005
Posts: 5
Rep Power: 0 wright45 is on a distinguished road
never mind.
This was a dumb question. I assumed basehref was a default key in Application or something.
wright45 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC