Hi Hongmei,
The issue we fixed was a bug in the code. After that if you're still getting the "Type is not allowed" exception, that is likely due to the missing key in the web.config, see AllowedCustomMetaDataTypes.
I have tested locally with a custom handler similar to yours and it throws the error, however, adding the following to the web.config fixes that:
<appSettings>
<add key="Telerik.Upload.AllowedCustomMetaDataTypes" value="CustomAsyncUploadResult" />
</appSettings>Please ensure that all Custom Types you implement for the AsyncUpload, is also listed in the AllowedCustomMetaDataTypes Web config setting.
Regards,
Attila Antal
Progress Telerik
Here is the control:
<telerik:RadAsyncUploadRenderMode="Lightweight"runat="server"ID="UploadFile"HttpHandlerUrl="~/Handlers/FileUploadHandler.ashx"ChunkSize="1048576"/>
Here is the handler:
PublicClassFileUploadHandlerInheritsAsyncUploadHandlerImplements System.Web.SessionState.IRequiresSessionStateProtectedOverridesFunctionProcess(ByValfileAsUploadedFile, ByValcontextAsHttpContext, ByValconfigurationAsIAsyncUploadConfiguration, ByValtempFileNameAsString) AsIAsyncUploadResultDimresultAsCustomAsyncUploadResult = CreateDefaultUploadResult(OfCustomAsyncUploadResult)(file) result.CustomSize = file.ContentLength ReturnresultEndFunctionEndClass
Here is the error:Private Sub UploadFile_FileUploaded(sender As Object, e As FileUploadedEventArgs) Handles UploadFile.FileUploaded Dim result As CustomAsyncUploadResult = TryCast(e.UploadResult, CustomAsyncUploadResult) End Sub
Hi Daniel,
Thanks again for reaching out and flagging the regression. The level of detail you included made it much easier for us to track down the root cause.
I’m happy to let you know that the issues have been resolved. The fixes are scheduled to go out with our upcoming 2026 Q3 release.
We appreciate your help in keeping things running smoothly.
Regards,
Attila Antal
Progress Telerik