Internal Server Error (http error1: 500)

Last post 04-15-2011, 5:09 AM by EllenD. 3 replies.
Sort Posts: Previous Next
  •  12-09-2009, 6:41 AM 57680

    Internal Server Error (http error1: 500)

    Hi all,
    I receive this error when I try to upload a new file without refresh the web page:
     
    http error1:500: InternaServer Error
     
    I will try to explain better the problem: when I load the page for the first time and I upload a file with your component, all works fine, the file is uloaded. If I don't refresh the page (I don't give a post back, maybe) and I try to upload a new file for the second time I receive this error. I note that in the temp directory the new file is loaded, so the error is in the copy file I suppose!
     
    I need to initializa the componente in some menner after the uploading? Can someone help me please?
     
    Below is my AjaxUpload component configuration in my web pages, thanks a lot for you support.
    Igor
     
    CODE
    ------

        Protected Sub upbAllegatiContenuto_FileUploaded(ByVal sender As Object, ByVal args As CuteWebUI.UploaderEventArgs) Handles upbAllegatiContenuto.FileUploaded

            ' Load File
            '
            Try

                Dim FileToUpload As String = myUploadFolder & "\" & args.FileName
                '
                args.CopyTo(FileToUpload)
                '
                Dim strTipoAllegato As String = args.FileName.Substring(args.FileName.Length - 3, 3).ToLower

            Catch ex As Exception

                lblErrore.Text = ex.Message

            End Try

        End Sub

    WEB PAGE
    -----------

    <cc3:UploaderBase ID="upbAllegatiContenuto" runat="server"

    FileTypeNotSupportMsg="Tipo file non supportato"

    InsertButtonID="btnCaricaAllegato" InsertText="carica allegato"

    ProgressBarStyle="Blocks" ProgressPanelWidth="300" ShowProgressInfo="False"

    TempDirectory="~/Uploadusers/Temp">

    <ValidateOption AllowedFileExtensions="pdf,txt,doc,docx,xls,xlsx,ppt,pptx,zip" />

    </cc3:UploaderBase>
     
     
  •  12-09-2009, 10:22 AM 57687 in reply to 57680

    Re: Internal Server Error (http error1: 500)

    Hi,
     
    That error is not caused by the FileUploaded event.
     
    After you refresh the page , do you get same error if you upload a new file ?
     
    Regards,
    Terry
  •  12-10-2009, 7:45 AM 57697 in reply to 57687

    Re: Internal Server Error (http error1: 500)

    Thank you for your reply.
     
    Yes, you're right.. I have tried to refresh the page with another event and the problem persist! So I have discovered that the problem is in another component in the page (fckeditor + ajax) and it does not depend on AjaxUploader.
     
    Thanks again for your support.
    Igor
     
     
  •  04-15-2011, 5:09 AM 67183 in reply to 57697

    Re: Internal Server Error (http error1: 500)

    Hi,
     
    I am experiencing a similar problem. I have the cutesoft ajax uploader and CKeditor on the same ASP.NET page. When I upload the first file it works fine, but when uploading a second file I get the Internal Server Error messagebox. Is there any resolution to this please?
     
    Any help much appreciated!
     
    Thank you
View as RSS news feed in XML