This is a migrated thread and some comments may be shown as answers.

Error code c00ce514 (RadUpload)

3 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roberto Wenzel
Top achievements
Rank 2
Roberto Wenzel asked on 03 Aug 2008, 07:11 AM
Hello,
I got an error message without further explanations. The code is c00ce514. I guess it has something to do with file up/downloading. The error occurs when I push a button for file download. I use RadUpload in my project.
Has anyoneexperienced similar problems?
Google found only a few results, which did not help me at all (most of the results where french pages!)
Any hint is appreciated.
Cheers Roberto

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 04 Aug 2008, 03:22 PM
Hi Roberto Wenzel,

Can you provide us a live url which we can access and check?

Googling the error code points to msxml3.dll - the Microsoft XML Parser. So at a guess, either you're feeding it invalid xml or it's choking on your valid xml - both are possible
http://www.webhostingtalk.com/showthread.php?t=564618

Other people overcome the problem by disabling compression. Can you try that please?

Regards,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Roberto Wenzel
Top achievements
Rank 2
answered on 06 Aug 2008, 03:51 PM
Hello thank you for your reply. The error occurs because of a file downloading action from inside an AJAX enabled RadGrid. It is no specific telerik problem but a commonly known issue of AJAX. I found several pages with scripts but could not manage to integrate them into my website. I tried several days and dozens of variations.

I have a RadGrid inside an AjaxPanel. In that grid is a template column with a push button to download a file.
Without AJAX enabled everything works fine. I need a function that disables AJAX when that button is clicked for file downloading:
Here is a part of that grid:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%">

<telerik:RadGrid ID="rad_DetailsGrid" runat="server" AutoGenerateColumns="False"

            GridLines="None" Skin="Sunset" AllowPaging="True">

...

<telerik:GridTemplateColumn UniqueName="Down">

<ItemTemplate>

<asp:Button runat="server"  ID="btnDownload" CommandName="Download" Text="file"  />

</ItemTemplate>

</telerik:GridTemplateColumn>

...

</telerik:RadGrid>

</telerik:RadAjaxPanel>

The underlying code is as following:

Public Sub RadDetailsGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rad_DetailsGrid.ItemCommand

...

If (e.CommandName = "Download") Then

Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)

Dim strFileName As String = String.Empty

Dim dblc As DataBoundLiteralControl = CType(dataItem("FileName").Controls(0), DataBoundLiteralControl)

strFileName = RTrim(LTrim(Replace(dblc.Text, Chr(13) + Chr(10), "")))

Dim strPath As String = Server.MapPath("./UploadedFiles")

Dim strFullPathAndFileName = strPath & "\" & strFileName

Dim file As System.IO.FileInfo = New System.IO.FileInfo(strFullPathAndFileName)

If file.Exists Then

Response.Clear()

Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name)

Response.AddHeader("Content-Length", file.Length.ToString())

Response.ContentType = "application/octet-stream"

Response.WriteFile(file.FullName)

Page.Response.End()

Else

Response.Write("This file does not exist.")

End If

End If

...

End Sub


Could you please provide me with a function that disables AJAX when the button is clicked and the file is downloaded?

0
Veselin Vasilev
Telerik team
answered on 07 Aug 2008, 01:34 PM
Hi Roberto,

Yes, you can disable AJAX for that button.

Please check the following links:
I hope this helps.

Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Roberto Wenzel
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Roberto Wenzel
Top achievements
Rank 2
Share this question
or