TextBox error after download

  • Thread starter Thread starter dancer
  • Start date Start date
D

dancer

Using ASP.Net 2.0, I had files that were compiling fine and running fine on
my local host against Framework 2.0 until I downloaded WebMatrix. I brought
one into WebMatrix and got the following message upon trying to run it.
Now I also get that message when I try to run this file and any others on my
local host outside of WebMatrix.

Who has an answer?
Control 'operation' of type 'TextBox' must be placed inside a form tag with
runat=server.
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: Control 'operation' of type
'TextBox' must be placed inside a form tag with runat=server.

I did a search, and all my TextBox controls are inside a form tag with
runat=server included.

THE REASON I downloaded WebMatrix was because I needed to run against 1.1
because of the limitations of my hosting server. Now I can't be successful
with 1.1 OR 2.0.
 
Using ASP.Net 2.0, I had files that were compiling fine and running fine on
my local host against Framework 2.0 until I downloaded WebMatrix. I brought
one into WebMatrix and got the following message upon trying to run it.
Now I also get that message when I try to run this file and any others on my
local host outside of WebMatrix.

Who has an answer?
Control 'operation' of type 'TextBox' must be placed inside a form tag with
runat=server.
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: Control 'operation' of type
'TextBox' must be placed inside a form tag with runat=server.

I did a search, and all my TextBox controls are inside a form tag with
runat=server included.

THE REASON I downloaded WebMatrix was because I needed to run against 1.1
because of the limitations of my hosting server. Now I can't be successful
with 1.1 OR 2.0.

Are you sure that there is only one form?
Do you have </form> at the end?
 
No. I have one <form> and one </form>
There was some text that included the word, form, so I searched and changed
every instance of the text form to xxxx just to be sure.
Still same message.
Why would this start after installing Web Matrix?
 
I'm reading your message again... What do you mean by "I needed to run
against 1.1"? As far as I remember WebMatrix is an ASP.NET IDE, so it
is for developing ASP.NET applications, and not for running remote web
sites.

I don't know about the Framework version WebMatrix used, and if the
web form is well formed then probably the problem happens because of
the different versions of the project (1.1 vs 2.0).
 
People say you can have both 1.1 and 2.0 side by side. ???
I downloaded and installed WebMatrix Project because my hosting server does
not support 2.0.
I need to change my code to be compatible with 1.1 WHICH IS VERY
FRUSTRATING.
Do you have any advice for doing this?
Changing servers is not an option at this time. I don't make the decision.
 
Dancer :

Do you have the .Net Framework 1.1 installed in your development box ?

We already know it's installed on the server you want to host your app in...

re:
!>> I don't know about the Framework version WebMatrix used

It uses 1.1...but if the .Net Framework 1.1 isn't installed
there won't be an ASP.NET tab in the IIS Manager.

That tab only shows up when *both* the 1.1 and 2.0 versions are installed.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Back
Top