我有我的asp.net網站一個奇怪的問題。 我想在兩臺不同的服務器上運行它。在一臺服務器上根本沒有任何問題,但另一臺服務器在嘗試使用chrome或ie打開時收到以下錯誤消息。ASP.net服務器錯誤/分析器錯誤
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:
代碼:
<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>
源文件:/RTA/Konfigurator_ETO/default.aspx線:172
版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.19028
這很難僅通過查看單獨例外,也許共享的HTML代碼,以及可能使尋找解決辦法告訴。 – Bayeni
事情是在其他的服務器一切正常 – Arturka1
我得到的,但你仍然展示的代碼,以便SO的可以很容易地發現什麼可能是這個原因。 – Bayeni