Getting http error1:404 :Not found

Last post 09-12-2016, 11:46 AM by haudau. 7 replies.
Sort Posts: Previous Next
  •  06-07-2011, 1:28 AM 67834

    Getting http error1:404 :Not found

    Hi,
     
    I am using the AjaxUploader in a page and displaying that page in a nyro modal. When I upload any file, I get the error http error1: 404: Not Found in an alert box. I believe the problem occurs since the uploader tries to refresh the page but the parent page is a different page than the one containing the uplaoder, since am opening it in a nyro modal.
     
    Can we prevent the uploader from trying to refresh the page? Or can you suggest some solution to this issue?
     
    An early response will be appreciated.
     
    Thanks & regards,
    Ketaki
  •  06-10-2011, 9:41 AM 67900 in reply to 67834

    Re: Getting http error1:404 :Not found

    Hi ketaki,
     
    Please save the following to test.aspx and then run it on your end:
     
    <%@ Page Language="C#" %>
    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <!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 runat="server">
        <title>Uploading multiple files like GMail</title>
    </head>
    <body>
        <form id="form1" runat="server">  
            <CuteWebUI:UploadAttachments MultipleFilesUpload="true"  InsertText="Upload Multiple files Now" runat="server" ID="Attachments1">          
            </CuteWebUI:UploadAttachments>     
        </form>
    </body>
    </html>
     
    Can you reproduce that issue based on this example?
     
    Thanks for asking
  •  09-01-2011, 6:45 AM 69906 in reply to 67900

    Re: Getting http error1:404 :Not found

     
    I'm getting the same error message, although in different circumstances;
     
    - site used to work fine in IIS6 (on Win2k3)
    - site has moved to IIS7.5 (on Win2k8), and is otherwise ok
    - both sites use the 
    UrlRewritingNet.UrlRewrite component, although I've also tried native IIS UrlRewrite on the newer server
    - uploading files now generates this error in a JS alert; "http error1 :404:Not Found"
    Using Fiddler to watch the HTTP conversation, this seems to happen after the last chunk has been uploaded; the browser makes a request with a large querystring (mostly ViewState), and this is returned;
     
    <script type='text/javascript'>if(window.parent.CurrentUpload)window.parent.CurrentUpload.UploadOK('ctl00_ctl00_contentMaster_contentCommittee_ucTopicForm_CommentFileUploaderImage_1314875976615_1','1d1ea7ee-a38f-4578-84c3-904bd3f948f0','')</script> 
     
    and the browser then re-requests the original page URL (with no query string), and gets "0|error|500||" returned.
     
    On the newer server, after the upload of the last chunk the browser makes the large querystring request, but gets a 404 response (with the standard IIS7 404 body).
     
    Using 
    UploaderDebug=1 on the querystring of the original page gives;
     
    INFO ScriptVersion ,20110722-01
    INFO UploadType/addontype,Auto/Silverlight
    BEGIN event initialize
    END event initialize
    BEGIN event browse
    END event browse,true
    BEGIN event silverlight select
    END event silverlight select,true
    BEGIN event start
    END event start
    BEGIN event taskstart,{20110830 Catalyst guidance notes.pdf:553726}
    END event taskstart
    INFO InitFrame 
    INFO silverlight report,response,dd6ee38e-ae99-468f-8936-926ac1bff0a2,OK,
    INFO submit form via xmlhttp ,http://www.DomainRemoved.com/committees/36/completed-papers/area107/topic1528.aspx?UploaderDebug=1&UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploaderDebugMode=1&_UploadID=ctl00_ctl00_contentMaster_contentCommittee_ucCommentForm_CommentFileUploaderImage_1314870913433_1&_UploadControlID=ctl00$ctl00$contentMaster$contentCommittee$ucCommentForm$CommentFileUploader&ContextValue=!3wEWAQUKfi9BcHBfRGF0Ya4mEb1ZxCoJY7WF4Es5lEJW7A43&_MaxSizeKB=102400&_Addon=verify&_AddonGuid=dd6ee38e-ae99-468f-8936-926ac1bff0a2
    INFO get http status,404
    ERROR get http 404, <html> (body snipped)
    INFO UploadError,ctl00_ctl00_contentMaster_contentCommittee_ucCommentForm_CommentFileUploaderImage_1314870913433_1,http error1 :404:Not Found,,20110830 Catalyst guidance notes.pdf
    BEGIN event error,20110830 Catalyst guidance notes.pdf:http error1 :404:Not Found
    END event error,true
    BEGIN event taskerror,error:http error1 :404:Not Found
    BEGIN event taskerror
    BEGIN event stop
    END event stop
      
    I'm using AjaxUploader version 3.0.20110722.
     
    I'm pretty sure this is related to the rewrites; the simple testcase above works fine.
     
    Help!
     
    Phil 
     
  •  09-01-2011, 7:22 AM 69907 in reply to 69906

    Re: Getting http error1:404 :Not found

    I should also clarify that everything works fine on other pages that don't use rewrites, or indeed, even on this page, if I use the underlying rewritten url.
     
    Phil 
  •  09-07-2011, 3:41 AM 69971 in reply to 69907

    Re: Getting http error1:404 :Not found

    I've now worked out that the problem happens at the "_Addon=verify" stage, when the uploader tries to rename the completely uploaded temporary file from "uploading.{guid}.{filename}.resx" to "persisted.{guid}.{filename}.resx".
     
    On another page in the site where I'm not using rewrites, things work fine, so I'm confident that permissions etc are all good. This is happening whether I use my previous UrlRewriting.Net rewrites, or my newer IIS7 'native' rewrites.
     
    I've also enabled full IIS Failed Request Tracing, and have the FRT logs for affected requests; bizarrely, these show no problems and a 200 Status Code, yet Fiddler clearly shows a standard 404 response being returned to the uploader.
     
    Help!
    Phil
  •  09-07-2011, 4:16 AM 69972 in reply to 69971

    Re: Getting http error1:404 :Not found

    Further to the thread at http://cutesoft.net/forums/1/50812/ShowThread.aspx, it seems as though using
     
    <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />
     
    has resolved the problem, although I've got more testing to do...
     
    Phil 
  •  09-12-2016, 11:46 AM 84571 in reply to 71119

    list of emoticons

    Thank you very much! Your blog is always full of great idea. They are really helpful

    list of emoticons

View as RSS news feed in XML