locked
Response.write stops IIS 7.5 RRS feed

  • Question

  • User-1380843065 posted

    I am having this problem, I am trying to show a HTML Page generated for Excel application, by using Classic ASP Page and using the response.write method but for any reason that method stops to work by cutting the text and then stops to send any more text to the page. However the ASP page ends its execution normally without errors.  This is happenning just in one page, I had create two more pages that shows the same content without problems.

     for example this is a portion of the HTML Excel page, the full content has around 64KB:

    <meta name="ProgId" content="Excel.Sheet" />
    <meta name="Generator" content="Microsoft Excel 12" />
    <link href="labpwlcq_filelist.xml" rel="File-List" />
    <style id="excelData_Styles">/*<![CDATA[*/
    <!--table
     {mso-displayed-decimal-separator:"\,";
     mso-displayed-thousand-separator:"\.";}
    .xl1527815
     {padding-top:1px;
     padding-right:1px;
     padding-left:1px;
     mso-ignore:padding;
     color:black;
     font-size:11.0pt;
     font-weight:400;
     font-style:normal;
     text-decoration:none;
     font-family:Calibri, sans-serif;
     mso-font-charset:0;
     mso-number-format:General;
     text-align:general;
     vertical-align:bottom;
     mso-background-source:auto;
     mso-pattern:auto;
     white-space:nowrap;}
    -->
    /*]]>*/</style>

    &#xa0;&#xa0;
    <!--La siguiente informaci&#243;n se gener&#243; mediante la caracter&#237;stica Publicar como
    p&#225;gina Web de Microsoft Office Excel.-->
    <!--Si se vuelve a publicar el mismo elemento desde Excel, se reemplazar&#225; toda
    la informaci&#243;n comprendida entre las etiquetas DIV.-->
    <!----------------------------->
    <!--INICIO DE LOS RESULTADOS DEL ASISTENTE PARA PUBLICAR COMO P&#193;GINA WEB DE
    EXCEL -->
    <!----------------------------->

    <div align="center" id="excelData" publishsource="Excel">

    <table width="880" style="width: 660pt; border-collapse: collapse; table-layout: fixed;" border="0" cellspacing="0" cellpadding="0">
     <colgroup><col width="80" style="width: 60pt;" span="11"></col>
     </colgroup><tbody><tr height="20" style="height: 15pt;">
      <td width="80" height="20" class="xl6527815" style="width: 60pt; height: 15pt;">RAZONES
      FI<span style="display: none;">NANCIERAS</span></td></tr></tbody></table>


    </div>


    <!----------------------------->
    <!--FINAL DE LOS RESULTADOS DEL ASISTENTE PARA PUBLICAR COMO P&#193;GINA WEB DE
    EXCEL-->
    <!----------------------------->


    Then the ASP Page prints that content though Response.Write method, and then for example tries to print "text after Excel", and then for example writes to a file the text "code after Excel".

    When I watch the HTML Code generated can note that the text was cutted off so the total page length is about 64KB and the last file lines are for example:

    <div align="center" id="excelData" publishsource="Excel">

    <table width="880" style="width: 660pt; border-collapse: collapse; table-layout: fixed;" border="0" cellspacing="0" cellpadding="0">
     <colgroup><col width="80" style="width: 60pt;" span="11"></col>
     </colgroup><tbody><tr height="20" style="height: 15pt;">
      <td width="80"

    But it never prints the text "text after Excel", however it writes the text "code after Excel" to the file.

    There is a strange thing, if I remove the end tag of the CDATA section, that is "]]>" characters, from the Excel page content, then the response.write method writes all but that makes like if all Excel page where CDATA, and that's wrong.

    I hope somebody could give me an idea about how to fix this.

    Thursday, January 12, 2012 10:30 AM

All replies

  • User-1672167363 posted

    Hi,

    Not sure is FRT for Classic ASP http://learn.iis.net/page.aspx/565/using-failed-request-tracing-to-troubleshoot-classic-asp-errors/

    enabled and turned on ?

    "When you click the view trace link, Internet Explorer will jump to the section of the trace where the ASP script failure occurred."

    Your might see the errors using the FRT and could help to fix ?

    Martin

     

    Friday, January 13, 2012 2:54 AM
  • User-1672167363 posted

    Hello,

    Did you turn on Failed requests tracing ?

    Have you check the ASP Setting for "Enable Parent Paths"  ?

     Get ProcessMonitor http://www.iislogs.com/articles/processmonitorw3wp/  to trouble shoot the process.

    Martin

     

    Wednesday, January 18, 2012 5:36 AM
  • User-1672167363 posted

    Hello,

    Have you enable Failed request Tracing for ASP ?

    HTH 

    Martin

     

    Sunday, January 22, 2012 12:33 PM
  • User-1380843065 posted
    After I wrote this I did a test by renaming the ASP file and suddenly it works, so I enabled the IIS Trace but the error had not happen again.
    Sunday, January 22, 2012 2:58 PM
  • User-1672167363 posted

    Thanks for updating this it will help other users :D.

    You did a test by renaming the ASP file it works.

    Martin

    Monday, January 23, 2012 2:36 AM