Uploading Documents from IIS7

2 posts, 0 answers
  1. Srikrishna
    Srikrishna avatar
    18 posts
    Member since:
    Apr 2012

    Posted 21 Aug 2012 Link to this post


    I am using RadUpload to upload the documents and i am saving the documents in a network.
    This is working fine when i try from my local system.I added my project to IIS7 and when i try to upload the documents from IIS the documents are not uploading.
    Can you please suggest me for any solution to this problem?

    Thanks in Advance.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 23 Aug 2012 Link to this post

    Hi Srikrishna, 

    Can you make sure that the RadUpload control can reach the UploadHandler? If you're using a relative url to the handler, that might be causing issues in case the url isn't properly resolved. This is why you can try using an absolute url as the UploadServiceUrl.

    Also, we had a few reports indicating that sometimes the relative path isn't correctly constructed when the SL application is published. Even though we weren't able to reproduce such an issue, a few clients reported that they had to create the following logic for constructing the path to the handler:

    //Setup the service URL for uploader
    string sBaseUrl = Application.Current.Host.Source.ToString().ToLower();
    int indexOfClientBin = sBaseUrl.IndexOf("/clientbin");
    sBaseUrl = sBaseUrl.Substring(0, indexOfClientBin);
    radUpload.UploadServiceUrl = sBaseUrl + "/RadUploadHandler.ashx";

    Let us know if this helps or if you're still experiencing issues.Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top