Internal Server Error (http error1: 500)

  •  12-09-2009, 6:41 AM

    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>
     
     
View Complete Thread