Issue
====
One of my colleagues was loosing intellisense in the code behind editor for a particular ASPX page intermittently in visual studio .net 2003.
Cause
=====
Later we found out that he edited the InitializeComponent method by adding the code below:
private void InitializeComponent()
{
if (Session["AnyVariable"] == null)
Server.Transfer("frm.aspx");
this.Load += new System.EventHandler(this.Page_Load);
}
Steps taken to find the root cause
=======================
A first chance exception of type 'System.ComponentModel.Design.Serialization.CodeDomSerializerException' occurred in microsoft.visualstudio.dll
Additional information: The designer cannot process the code at line 40:
The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
Resolution
=======