I am working on a legacy .net version 1.0 aspx.cs project for web development.
To debug the code, I use a series of Response.Write statements such as:
string strMessage = "Reached start of method A";
Response.Write("<script>alert('"+strMessage+"');</script>");
These work; however, when I get to a new constructor:
MyObject myObject1 = new MyObject();
the message doesn't appear.
It seems unlikely to me (for other reasons) that the constructor would fail here.
Does anyone have any thoughts as to why the message doesn't appear?
Could there be a memory issue?
If I comment out the constructor, the next message does indeed appear.
Turns out I was missing the .net assembly for the relevant project on the relevant server. So the constructor was indeed "bad" just as the debugging implied!