File not moved to target on postback

4 posts, 0 answers
  1. Brian
    Brian avatar
    3 posts
    Member since:
    Sep 2011

    Posted 28 Jan 2014 Link to this post

    I build the simplest of examples and it works fine on my local machine.  The file is uploaded to the default temporary location and on the postback it is moved to the target folder (c:\temp).  When I move the code to a server in our farm, the file is uploaded to the temporary location, but on the postback, it doesn't move to the target folder (c:\temp).  I have tried multiple IIS servers and have the same results.  It only works locally.  What am I doing wrong?

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    <html xmlns="">
    <head runat="server">
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    <script type="text/javascript">
    //Put your JavaScript code here.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">



    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="iso,avi,xlsx,xls,docx,png,jpg" MaxFileSize="2000000000" TargetFolder="c:\temp">
    <telerik:RadButton ID="RadButton1" runat="server" Text="Finish">
    <br />

  2. Brian
    Brian avatar
    3 posts
    Member since:
    Sep 2011

    Posted 28 Jan 2014 in reply to Brian Link to this post

    more info:  
        If I attempt to leverage the OnClientFileUploadFailed event handler, the RadAsyncUpload control disappears from the web page.  It doesn't matter what is in the javascript either.  I can leave it empty and it still disappears.  So I can't get to the error message, if there is one.   There are no event log entries from the failure.  No errors on the page.  nothing to denote there was an issue, the files just fail to move to the target. 

    I downloaded the trial version yesterday to test the control to see if it would do what we needed.  We had success and the files moved to the target folder, even on the server.  We were prompted to download an update today and it has been broken ever since.  That might be coincidental, however.  Not sure. 
  3. DevCraft R3 2016 release webinar banner
  4. Brian
    Brian avatar
    3 posts
    Member since:
    Sep 2011

    Posted 29 Jan 2014 in reply to Brian Link to this post

    Is there a way to lengthen the evaluation period?  It doesn't look like I will get a response before it expires. 
  5. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 31 Jan 2014 Link to this post

    Hi Brian,

    Everything in your code looks normal. Please make sure that your application has write permissions to this
    folder: c:\temp

    If it doesn't help please attach a fiddler log.

    Hristo Valyavicharski
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top