Sign In  Sign Up Live-Chat

Error when opening some documents

Last post 06-10-2008, 11:16 PM by mf. 6 replies.
Sort Posts: Previous Next
  •  06-06-2008, 12:50 PM 130394

    Error when opening some documents

    I am getting the following JAVA Script error when opening some documents (not all):

     

    The Server Committed a Protocol Violation.  Section=ResponseHeader Detail=CR must be followed by LF.

     

    Can you let me know if this is something that I am doing wrong or a document problem, or any other possiblities?

     

    Thanks.

     

    ANDY

     
  •  06-06-2008, 9:20 PM 130435 in reply to 130394

    Re: Error when opening some documents

    Dear Andy,
    can you please send us sample document which causes this error? Does the same error happen each time you open the document? Or does it happen sometimes but not every time?

    I can think of one possible reason for this. If you throw exception on the server (e.g. due to a fault while reading/sending the document) with message which doesn't conform to HTML protocol standard (contains invalid characters, in this case CR instead of CR/LF) then you may have the java error described.

    P.S. If you send us the document I'll be able to provide more details.

    Best regards,
    Michael

     

     
  •  06-09-2008, 6:01 PM 130638 in reply to 130394

    Re: Error when opening some documents

    Attachment: Present (inaccessible)

    Here is the files that gives me problems.  The only thing that may be odd about the document is that I originally created it in the newest version of Word.  And then used Save As to downgrade it to Windows 2003 compatible.

     

    Thanks

     
  •  06-09-2008, 7:32 PM 130647 in reply to 130638

    Re: Error when opening some documents

    Dear Andy,
    your document is in DOCX (2007) format. Latest version 2.3.0 of the editor can save but not load documents in this format.  I think this is the reason for the error. I've converted this document to DOC (2003) format using Microsoft Word 2003 and it now opens fine.

    Next (yet unreleased) version of the editor supports both reading and writing of DOCX, this issue will go away.

    Kind regards,
    Michael

     
  •  06-10-2008, 6:44 PM 130853 in reply to 130647

    Re: Error when opening some documents

    Great Thanks - now I have a new one -

    I am at my client's office.  One of the machines is Vista.  My application runs but when the editor appears, I get the following:

    Unhandled exception has occurred in a component in your application.  if you click continue, the application will ignore this error and attempt to continue.

    The type initializer for 'xc2c477ae06969bcc.x99d36eaeb8e190b8' threw an exception

    A big red rectangular box appears at the top of the editor.  When I press continue, it appears to work, but I can't edit the document.

    This issue may relate to multiple .NET frameworks on the machine.  I added the caspol security script to the .NET 1.1 area, but still got the error.  I did it to the 2.0 side and then I could open the editor.

     

    Any thoughts on this one would be helpful.  Thanks.

     

    ANDY

     
  •  06-10-2008, 6:45 PM 130854 in reply to 130853

    Re: Error when opening some documents

    When I press details, I get the following:

     

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.TypeInitializationException: The type initializer for 'xc2c477ae06969bcc.x99d36eaeb8e190b8' threw an exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
       at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
       at System.Security.CodeAccessPermission.Demand()
       at System.Drawing.Graphics.FromHwnd(IntPtr hwnd)
       at xc2c477ae06969bcc.x99d36eaeb8e190b8..cctor()
    The action that failed was:
    Demand
    The type of the first permission that failed was:
    System.Security.Permissions.SecurityPermission
       --- End of inner exception stack trace ---
       at xc2c477ae06969bcc.xcd0f71eac0b8ec87.x7516829ed6513963(Graphics x4b101060f4767186, Int32 x01023a7c5d96848c, Int32 x9528f9664a3881e3, Int32 xf67d0ad06e5256e3, Int32 x58fbd68b6e9d8f70, Int32 x7304b15c2c6eea76, Int32 x5b2cec0df3c4dbd1, Single x9570f4c9d2722802, Single x96a6a0179b30d7b8)
       at x695c6a2fce4e6e02.xbe47ed34daf505bb.x58956ea72b60eca5(PaintEventArgs xfbf34718e704c6bc)
       at x695c6a2fce4e6e02.xbe47ed34daf505bb.OnPaint(PaintEventArgs e)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at x695c6a2fce4e6e02.xbe47ed34daf505bb.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    if that helps.

     

    ANDY

     
  •  06-10-2008, 11:16 PM 130871 in reply to 130854

    Re: Error when opening some documents

     
View as RSS news feed in XML