RadAsyncUpload save server problem

Thread is closed for posting
9 posts, 0 answers
  1. esra
    esra avatar
    2 posts
    Member since:
    Jul 2010

    Posted 10 Nov 2010 Link to this post

    Hi all,

    I m trying to make an multi file upload by using RadAsyncUpload.
    Project is working well on local but when i publish it, control does not include any uploaded file, so it does not enter the for loop and a exclamation mark  appaers.

    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" TargetFolder="~\AttachPath"
                            TemporaryFolder="~\App_Data\RadUploadTemp" AllowedFileExtensions="jpg,jpeg,png,gif">
                            </telerik:RadAsyncUpload>

     protected void lnkara_Click(object sender, EventArgs e)
            {
                PopulateUploadedFilesList();

                ConfigDataContext data = new ConfigDataContext();
                if (!string.IsNullOrEmpty(dropfleet.SelectedValue))
                {
                    for (int i = 0; i < RadAsyncUpload1.UploadedFiles.Count; i++)
                    {
                        CNF_FILE_PATH newfile = new CNF_FILE_PATH();
                        string path = ConfigurationManager.AppSettings["filePatch"] ;
                        newfile.FILE_PATH = path + RadAsyncUpload1.UploadedFiles[i].FileName;
                        newfile.REGISTRATION = dropfleetlist.SelectedItem.Text;
                        newfile.FLEET_ID = dropfleet.SelectedValue.ToInt();
                        data.CNF_FILE_PATHs.InsertOnSubmit(newfile);
                        data.SubmitChanges();
                        sucsessful.Visible = true;
                    }
                  
                }
            }

  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 16 Nov 2010 Link to this post

    Hi esra,

    Could you please open your page in FireFox, open the FireBug console and check what error code appears when the exclamation point shows. Then, please paste the code here so that we can troubleshoot the issue. Thank you.

    Best wishes,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. esra
    esra avatar
    2 posts
    Member since:
    Jul 2010

    Posted 01 Dec 2010 Link to this post

    Uyarı: Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 562
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702

    Uyarı: Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 562


    -----------------------------------
    Server Error in '/' Application.

    RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [UnauthorizedAccessException: RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.]
       Telerik.Web.UI.RadAsyncUpload.CreateTempFolder() +75
       Telerik.Web.UI.RadAsyncUpload.EnsureDefaultTemporaryFolderExists() +59
       Telerik.Web.UI.RadAsyncUpload.OnPreRender(EventArgs e) +42
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    

    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702
    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702


    Unknown property 'zoom'.  Declaration dropped.
    Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
    Hat: 702

  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 06 Dec 2010 Link to this post

    Hi esra,

    You are facing a permission error. Please, make sure that IIS is given rights to write to the App_Data folder.

    Best wishes,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Guru
    Guru avatar
    2 posts
    Member since:
    Nov 2012

    Posted 16 Feb 2013 Link to this post

    If you are used RadAsyncUpload server control then you may get this type of error. Copy and paste App_Data and its contents to the server.I hope now problem will be solved.
  7. Kaushal
    Kaushal avatar
    8 posts
    Member since:
    Mar 2012

    Posted 20 Jun 2014 Link to this post

    Hi, I know this is old post.. but I have one question related to asynupload.. On the telerik website it says that I can use web.config file to decide the location of the temporary folder.

    < add key="Telerik.AsyncUpload.TemporaryFolder" value="[path_to_the_temporary_folder]" />

    If two users are uploading multiple files, all the files will be stored in this temporary folder. Does asyncupload remember which file belongs to user 1 and which files belong to user 2?
  8. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 23 Jun 2014 Link to this post

    Hi Kaushal,

    Yes, it is possible to determine, which file was uploaded from User1 and User2. Try to handle the OnFileUploaded event and save the file manually on the file system or inside a database. If is needed rename the file or add insert the user id in the database. For example:

    User1 ID - 8d0c84f2-c169-4080-81f5-ff814e9d4da8
    User2 ID - b26634f6-90cb-412e-97a3-0361a6f06ac7

    File system:

    8d0c84f2-c169-4080-81f5-ff814e9d4da8_photo.jpg
    b26634f6-90cb-412e-97a3-0361a6f06ac7_photo.jpg

    Database:

    ID | Filename | UserID
    ----------------------------------------------------------------------------------
    1  | photo.jpg | 8d0c84f2-c169-4080-81f5-ff814e9d4da8
    ----------------------------------------------------------------------------------
    2  | photo.jpg | b26634f6-90cb-412e-97a3-0361a6f06ac7
    ----------------------------------------------------------------------------------

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Praveen kumar
    Praveen kumar avatar
    11 posts
    Member since:
    Jun 2015

    Posted 25 Jun 2015 Link to this post

    question regarding setiing Target folder . In below mentioned url

    http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/overview

    it says we can specify the Target folder in config file. I have added key/value under configuration tag of webconfig file. am geting error.

    Do i need to refernce this appsettings values in the code block or design block?

  10. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 29 Jun 2015 Link to this post

    The TargetFolder property cannot be configured directly inot the web.config as the TemporaryFolder. The reason is that the TemporaryFolder is shared and same for all uploads, but it multiple uploads can have different TargetFolders. But if you want you can define it in the web.config

    <appSettings>
      <add key="UploadFolder" value="C:\Uploads" />
      <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
      <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />
      <add key="Telerik.Web.UI.DropDownTree.ExpandAnimation" value="None" />
      <add key="Telerik.AsyncUpload.TargetFolder" value="C:\t" />
    </appSettings>

    protected void Page_Load(object sender, EventArgs e)
    {
        RadAsyncUpload1.TargetFolder = ConfigurationManager.AppSettings["UploadFolder"];
    }


    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items


    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017