Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suddenly Cannot Start Up Site = Object Not Set

Status
Not open for further replies.

jjwild

Programmer
Sep 7, 2001
115
US
I was working in a small project in Visual Studio and I suddenly was not able to run it - when I started it, the first line in the aspx file would always generate the error "System.NullReferenceException: Object reference not set to an instance of an object.".

The <%@ Page line was giving the error so I reordered the lines to put a <%@ Register line first. Then the <%@ Register line gave the error.

I created a new .aspx page with nothing in it as the start page and its <%@ Page line received the error as well.

I created an HTML page as the start page and this started. However, when I put a link on it to an aspx page, that page died in the same way.

Any ideas? What did I do?

 
Note:

I later found out that none of my sites were running. I reinstalled .Net framework and rebooted and I was OK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top