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

Uploading Documents from IIS7

1 Answer 65 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Srikrishna
Top achievements
Rank 1
Srikrishna asked on 21 Aug 2012, 12:34 PM

Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 23 Aug 2012, 07:15 PM
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.

Tags
Upload
Asked by
Srikrishna
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or