This question is locked. New answers and comments are not allowed.
Hi,
I'm using the Upload control to upload files via a SharePoint site to the server's file system.
The client that I've implemented this for recently experienced problems with uploading two files:
"Handler not found or execution of the handler failed!
[HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose...
Check RadUpload's BufferSize property remarks."
Code:
// HttpHandler
Thanks for any pointers to what could be wrong!
I'm using the Upload control to upload files via a SharePoint site to the server's file system.
The client that I've implemented this for recently experienced problems with uploading two files:
"Handler not found or execution of the handler failed!
[HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose...
Check RadUpload's BufferSize property remarks."
Code:
<
telerik:RadUpload
UploadServiceUrl
=
"/_layouts/NorConsult.FTPUpload/UploadHandler.ashx"
TargetPhysicalFolder
=
"c:\_source\ScratchFolder\"
Height
=
"284"
HorizontalAlignment
=
"Left"
Margin
=
"8,9,0,0"
Name
=
"RadUpload2"
VerticalAlignment
=
"Top"
MaxFileCount
=
"100"
Width
=
"590"
OverwriteExistingFiles
=
"True"
HorizontalContentAlignment
=
"Left"
IsAppendFilesEnabled
=
"True"
IsAutomaticUpload
=
"False"
IsMultiselect
=
"True"
MaxUploadSize
=
"5000000000"
MaxFileSize
=
"2000000000"
FileTooLarge
=
"RadUpload1_FileTooLarge"
FileUploaded
=
"radUpload_FileUploaded"
FileUploadFailed
=
"RadUpload2_FileUploadFailed"
UploadFinished
=
"RadUpload2_UploadFinished"
Grid.RowSpan
=
"2"
>
</
telerik:RadUpload
>
// HttpHandler
public
override
bool
SaveChunkData(
string
filePath,
long
position,
byte
[] buffer,
int
contentLength,
out
int
savedBytes)
{
bool
ret =
base
.SaveChunkData(filePath, position, buffer, contentLength,
out
savedBytes);
if
(
this
.IsFinalFileRequest())
{
string
fileNameDrop = Constants.Path_ScratchArea +
this
.GetFileName();
string
fileNameFinal = Constants.Path_ScratchArea + @
"Ready\"
+
this
.GetFileName();
if
(File.Exists(fileNameFinal))
{
File.Delete(fileNameFinal);
}
File.Move(fileNameDrop, fileNameFinal);
}
return
ret;
}
Thanks for any pointers to what could be wrong!