"A page can have only one server-side Form tag." when NONE exist!

S

ScottF

There was a problem with ASP.Net 1.1 creating/generating bad
javascript on html pages that I ran into and on the KB page that I had
found at the time it said that the problem was fixed in the .Net
Framework 1.1 SP 1.

So, I ran "NDP1.1sp1-KB867460-X86.exe" thus installing that SP and now
I'm getting this very strange "A page can have only one server-side
Form tag." error and am wondering if anyone knows how to fix it. The
thing is, I commented out ALL of the <form> tags on my main
(Default.aspx) page and I STILL get this @#$#en error.

I have no clue what to do now because this error makes absolutely no
sense. Should I uninstall the SP, or... ? The text version of the
error page I'm getting is;

Server Error in '/PTa01' Application.
------------------------------------------------------------------------------

A page can have only one server-side Form tag.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: A page can have only one
server-side Form tag.

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:
[HttpException (0x80004005): A page can have only one server-side Form
tag.]
System.Web.UI.Page.OnFormRender(HtmlTextWriter writer, String
formUniqueID)
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032

** end

Notice how my page (again, Default.aspx) isn't even mentioned in the
call stack.

ANY help/ideas appreciated!!
Thanks!
-Scott F.
 
K

Ken Cox [Microsoft MVP]

Well, you do need a Form tag. <grin>

Did the sp require a reboot?

Is it possible that this is somehow related to the problem in the files in
the aspnet_client folder in the service pack?

http://weblogs.asp.net/pwilson/archive/2004/09/16/230591.aspx

ScottF said:
There was a problem with ASP.Net 1.1 creating/generating bad
javascript on html pages that I ran into and on the KB page that I had
found at the time it said that the problem was fixed in the .Net
Framework 1.1 SP 1.

So, I ran "NDP1.1sp1-KB867460-X86.exe" thus installing that SP and now
I'm getting this very strange "A page can have only one server-side
Form tag." error and am wondering if anyone knows how to fix it. The
thing is, I commented out ALL of the <form> tags on my main
(Default.aspx) page and I STILL get this @#$#en error.

I have no clue what to do now because this error makes absolutely no
sense. Should I uninstall the SP, or... ? The text version of the
error page I'm getting is;

Server Error in '/PTa01' Application.
------------------------------------------------------------------------------

A page can have only one server-side Form tag.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: A page can have only one
server-side Form tag.

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:
[HttpException (0x80004005): A page can have only one server-side Form
tag.]
System.Web.UI.Page.OnFormRender(HtmlTextWriter writer, String
formUniqueID)
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer)
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032

** end

Notice how my page (again, Default.aspx) isn't even mentioned in the
call stack.

ANY help/ideas appreciated!!
Thanks!
-Scott F.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,061
Latest member
KetonaraKeto

Latest Threads

Top