2013-03-26 2 views
0

저는 웹 사이트 및 웹 응용 프로그램에서 상당히 새로 왔습니다. localhost IIS에서 올바르게 작동하는 웹 사이트를 만들었지 만 서버에 올려 놓았을 때 제대로 작동하지 않습니다. 일하기 시작할 때까지 잠시 기다려야합니다.몇 초 후에 웹 사이트가 작동하기 시작합니다.

웹 페이지 오류 세부

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; InfoPath.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; MS-RTC LM 8) 
Timestamp: Tue, 26 Mar 2013 13:07:37 UTC 
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. 
Line: 869 
Char: 13 
Code: 0 

(가 창 아래 왼쪽에 있어요) 나는 참으로 추적을 설정하고 지금 작동 : 나는 드롭 다운에서 항목을 선택하면 나는 또한 다음과 같은 오류가 발생합니다. 하지만 Dropbox에서 항목을 선택할 때 여전히 오류가 표시되므로 좋은 해결책이 아닌 것 같습니다. 이것에 대해 좋은 제안이 있습니까? 구성 파일이나 다른 곳에서 무언가를 추가하거나 제거해야합니까? 다음은 당신이 "Sys.WebForms.PageRequestManagerParserErrorException"오류에 충돌 한 좋은 기회가, 내 web.cinfig 당신은 마이크로 소프트 ASP.NET AJAX UpdatePanel 컨트롤을 사용했다면

<?xml version="1.0"?> 
    <configuration> 
    <system.web> 
     <customErrors mode="Off"/> 
     <compilation targetFramework="4.0" debug="true"/> 
     <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"  
        viewStateEncryptionMode="Always"/> 
     <trace 
     enabled="true"/> 
    </system.web> 
    </configuration> 
+1

당신이 예외의 원인이되는 코드의 일부를 게시 할 수 있습니까? – Rob

+6

asp.net 웹 사이트가 처음 실행될 때 처음 컴파일 될 때 약간의 시간이 걸립니다. 당신의 실수에 관해서. 오류를 던지고있는 페이지의 일부 자바 스크립트가 869 줄에있는 소스 코드를 가지고 있습니다. – skyfoot

+0

Microsoft ASP.NET AJAX UpdatePanel 컨트롤을 사용 해본 적이 있습니까? – Niventh

답변

0

실제로이 오류가 발생하는지 확실하지 않습니다. 내 webform 메신저에서 updatepanel을 사용하여. rhis은 내 웹 양식의 일부입니다.

 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" 
     Inherits="Default" %> 

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     <html xmlns="http://www.w3.org/1999/xhtml"> 
     <head id="Head1" runat="server"> 
    <title>DTC</title> 
    </head> 
<body bgcolor="#333333"> 
<h1 align="center" style="font-family: Arial; color: #FFFF99; height: 40px; font- 
    weight: bold; 
    font-size: 50px; min-width: 900px;" title="Header"> 
    DTC Viewer</h1> 
    <form id="form1" runat="server" style="margin: 50px 100px 50px 100px; min-width: 700px; 
    background-color: #C0C0C0; font-family: Arial, Helvetica, sans-serif;"> 
    <div align="center" style="width: 100%"> 
    <asp:UpdatePanel ID="CheckboxUpdatePanel" runat="server" UpdateMode="Conditional"> 
     <ContentTemplate> 
      <table id="MainTable" runat="server" style="margin-left: 100px;"> 
       <tr> 
        <td> 
         <asp:UpdatePanel ID="BrandUpdatePanel" runat="server" UpdateMode="Conditional"> 
          <ContentTemplate> 
           <table> 
            <tr> 
             <td style="padding-bottom: 5px;"> 
              <asp:Label ID="BrandLabel" runat="server" Text="Brand :" Font-Names="Arial" Font-Size="Medium" 
               ForeColor="#333333" CssClass="MyLabel" Width="8em" 
               style="margin-right: 1em;text-align: right;"></asp:Label> 
             </td> 
             <td style="padding-bottom: 5px;"> 
              <asp:TextBox ID="Brand" runat="server" Height="15px" Width="176px" Text="VTC" BackColor="#FFFFCC" 
               CssClass="MyDropBox" AutoPostBack="True" ForeColor="#666666" ReadOnly="True"></asp:TextBox> 
               <asp:Label ID="StarLabel1" runat="server" Font-Names="Arial" Font-Size="Medium" 
               ForeColor="#333333" Width="1em" 
               style="text-align: left;" Text="*"></asp:Label> 
             </td> 

             <td style="padding-bottom: 5px;"> 
              <asp:RequiredFieldValidator ID="BrandValidator" runat="server" ErrorMessage="Basic Search: Brand is required" 
               ControlToValidate="Brand" InitialValue="" ForeColor="Red" Width="15em" CssClass="ErrorMessage" 
               Font-Size="Small"></asp:RequiredFieldValidator> 
             </td> 
            </tr> 
            <tr> 
             <td> 
              <asp:Label ID="ModelLabel" runat="server" Text="Model :" Font-Names="Arial" Font-Size="Medium" 
               ForeColor="#333333" CssClass="MyLabel" Width="8em" 
               style="margin-right: 1em;text-align: right;"></asp:Label> 
             </td> 
             <td> 
              <asp:TextBox ID="Model" runat="server" Height="15px" Width="176px" Text="FH(4)" BackColor="#FFFFCC" 
               CssClass="MyDropBox" AutoPostBack="True" ForeColor="#666666" ReadOnly="True"></asp:TextBox> 
               <asp:Label ID="StarLabel2" runat="server" Font-Names="Arial" Font-Size="Medium" 
               ForeColor="#333333" Width="1em" 
               style="text-align: left;" Text="*"></asp:Label> 
             </td> 
             <td> 
              <asp:RequiredFieldValidator ID="ModelValidator" runat="server" ErrorMessage="Basic Search: Model is required" 
               ControlToValidate="Model" InitialValue="" ForeColor="Red" Width="15em" CssClass="ErrorMessage" 
               Font-Size="Small"></asp:RequiredFieldValidator> 
             </td> 
            </tr> 
           </table> 
          </ContentTemplate> 
         </asp:UpdatePanel> 
        </td> 
       </tr> 
       <tr> 
        <td> 
         <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> 
          <ContentTemplate> 
           <table> 
            <tr> 
             <td> 
              <asp:Label ID="KTXLabel" runat="server" Text=" Emission level :" 
               Font-Names="Arial" Font-Size="Medium" 
               ForeColor="#333333" CssClass="MyLabel" Width="8em" 
               style="margin-right: 1em;text-align: right; margin-left: 0px;"></asp:Label> 
             </td> 
             <td> 
              <asp:DropDownList ID="KTX" runat="server" BackColor="#FFFFCC" ForeColor="#666666" 
               Height="21px" Style="margin-left: 0px" Width="182px" OnSelectedIndexChanged="KTX_SelectedIndexChanged" 
               CssClass="MyDropBox" DataTextField="text" DataValueField="value" AutoPostBack="True"> 
              </asp:DropDownList> 
              <asp:Label ID="Label1" runat="server" Font-Names="Arial" Font-Size="Medium" 
               ForeColor="#333333" Width="1em" 
               style="text-align: left;" Text="*"></asp:Label> 
             </td> 
             <td> 
        ......... 
        .......... 


     </ContentTemplate> 
    </asp:UpdatePanel> 
    <div style="width: 123px; margin-left: 7px; z-index: inherit;"> 
     <asp:Button ID="getURLButton" runat="server" Height="32px" OnClick="getURLButton_Click" 
      Text="Submit" Width="134px" BackColor="#DD5800" BorderColor="Gray" Font-Bold="True" 
      Class="MyButton" Font-Size="Large" ForeColor="#4E4E4E" /> 
    </div> 
    <br /> 
</div> 
</form> 

관련 문제