2015-04-23 51 views
0

我有我的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

+0

這很難僅通過查看單獨例外,也許共享的HTML代碼,以及可能使尋找解決辦法告訴。 – Bayeni

+0

事情是在其他的服務器一切正常 – Arturka1

+0

我得到的,但你仍然展示的代碼,以便SO的可以很容易地發現什麼可能是這個原因。 – Bayeni

回答

0

我解決了這個問題,只需重新上傳服務器上的文件。所以代碼不是問題。

0

不知道爲什麼會出現這個錯誤,但我有這個問題太,只是我重新啓動我的系統並運行應用程序,現在工作得很好。

+1

這應該是一個評論。 –

+0

@RahulSingh好的,謝謝你的信息。 –

+0

@RahulSingh我沒有足夠的聲望來評論這裏,它至少需要50個聲望,這就是爲什麼已經放置了答案,使感覺? –