ChristianWhite
Programmer
I'm revisiting an old application of mine--a comments page that sends an email--for an edit. But before I can do that, I'm trying to get it to run properly. I'm seeing an error I don't remember seeing during its development.
On trying to run the app for the first time since development, I saw this error:
XML Parsing Error: no element found
Location: Line Number 1, Column 1:
^
I proceeded to pare down elements of the page and run the app looking for the troublemaker.
When I open a new instance of Visual Studio 2005, I am able to watch the app progress through the breakpoints, send the email, and redirect to the "Thank You" htm page. But after closing the browser and kicking off a second runtime--or after clicking Back and trying another submit--I immediately see the above error, instead of my entry page, upon starting all subsequent runtimes until I restart Visual Studio 2005.
The pared-down body of the page looks like this :
<body>
<form id="frmContact" name="frmContact" method="post" runat="server" >
<asp:button id="Submit1" OnClick="Submit1_Click" Text="Submit" runat="server" />
</p>
</form>
</body>
The codebehind feeds the entry to an emailer class sending email to the party i created the page for--roughly along the lines of
string strMessage = Request.Form["message"];
c
Emailer Em = new Emailer();
Em.SendEmail(strMessage);
Really baffling...feel like I'm trying to nail Jell-O (TM) to a tree: Runs OK on initial runtime, then croaks on the next. Insight appreciated.
On trying to run the app for the first time since development, I saw this error:
XML Parsing Error: no element found
Location: Line Number 1, Column 1:
^
I proceeded to pare down elements of the page and run the app looking for the troublemaker.
When I open a new instance of Visual Studio 2005, I am able to watch the app progress through the breakpoints, send the email, and redirect to the "Thank You" htm page. But after closing the browser and kicking off a second runtime--or after clicking Back and trying another submit--I immediately see the above error, instead of my entry page, upon starting all subsequent runtimes until I restart Visual Studio 2005.
The pared-down body of the page looks like this :
<body>
<form id="frmContact" name="frmContact" method="post" runat="server" >
<asp:button id="Submit1" OnClick="Submit1_Click" Text="Submit" runat="server" />
</p>
</form>
</body>
The codebehind feeds the entry to an emailer class sending email to the party i created the page for--roughly along the lines of
string strMessage = Request.Form["message"];
c
Emailer Em = new Emailer();
Em.SendEmail(strMessage);
Really baffling...feel like I'm trying to nail Jell-O (TM) to a tree: Runs OK on initial runtime, then croaks on the next. Insight appreciated.