Arturka1
Arturka1

Reputation: 65

ASP.net Server Error/Parser Error

I have a strange problem with my asp.net website. I want to run it on two different servers. On one server there is no problem at all but on the other i get the following error message when trying to open it with chrome or ie.

Server Error in '/RTA/ETO' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: System.Web.UI.HtmlControls.HtmlTableCellCollection must have items of type 'System.Web.UI.HtmlControls.HtmlTableCell'. 'asp:TextBox' is of type 'System.Web.UI.WebControls.TextBox'.

Source Error:

Line 170: Line 171: Line 172:
Text="" ValidationGroup="Size" Visible = 'false' Width="100%" TabIndex="4" > Line 174:

the code:

<tr id="tr_customerMarketOrganization" runat="server">
                <td align="left" colspan="1" valign="top" class="auto-style3">
                    <asp:Label ID="L_CustomerMarketOrganization" runat="server" Font-Bold="True" Font-Size="1em" 
                        ForeColor="#14007F"></asp:Label>
                </td> 
                <td align="left"; class="style19">
                  **here ist line 172**  <asp:TextBox ID="tbCustomer" runat="server" 
                        Text="" ValidationGroup="Size" Visible = 'false' Width="100%" TabIndex="4" ></asp:TextBox>
                </td>
                <td colspan="2">
                    <asp:Label ID="L_Error_Customer" runat="server" Font-Names="Arial" ForeColor="Red" Visible="False"></asp:Label>
                </td>
            </tr>

Source File: /RTA/Konfigurator_ETO/default.aspx Line: 172

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19028

Upvotes: 0

Views: 1672

Answers (3)

Mike H
Mike H

Reputation: 1

This is a parsing error. There are single quotes that need to be double quotes around Visible = 'false' --> Visible = "false".

Upvotes: 0

Arturka1
Arturka1

Reputation: 65

I solved this problem by simply reupload the files on the server. So the code wasn't the problem.

Upvotes: 0

Chiragkumar Thakar
Chiragkumar Thakar

Reputation: 3716

No idea about why this error occurs but i had this issue too, just i restart my system and run the application, it work fine now.

Upvotes: 0

Related Questions