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