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

Access to the path is denied in Radupload with Silverlight

2 Answers 112 Views
Upload
This is a migrated thread and some comments may be shown as answers.
jagi
Top achievements
Rank 1
jagi asked on 22 Oct 2011, 09:53 AM
Dear Team,
         Our project is developed using asp.net with c# 4.0 silverlight and telerik controls. Our requirement is that need a way of browse an excel file and display it to the Radgridview. I did such a way that uploading that excel file into target folder and try to read that file from target folder using filestream. I can successfully able to upload into target folder. But i could not able to read the file as it says "access to path is denied". Could you please guide me to resolve the issue. Whether i need to give any permission to the target folder??.

<

telerik:RadUpload Margin="14,15,0,0"

 x:Name="RadUpload1"

 IsEnabled="{Binding IsEditable}"

 MinWidth="330"

 Filter="Excel files (*.xls)|*.xls|All files (*.*)|*.*"

 Style="{StaticResource RadUploadStyle1}"

 FontFamily="Arial"

 UploadServiceUrl="../FileUploadHandler.ashx"

 Visibility="{Binding BullkVisibility, Mode=TwoWay}"

 IsAutomaticUpload="False"

 TargetFolder="UploadedExcel"

 OverwriteExistingFiles="True"

 IsMultiselect="False"

 UploadCanceled="RadUpload1_UploadCanceled"

 FileUploaded="RadUpload1_FileUploaded"

 MaxFileCount="1" MaxFileSize="2000000"

 HorizontalAlignment="Left" Width="400"

 Height="121"

 Grid.Row="1"

 VerticalAlignment="Top" />

 
Regards,
Jegadeesh.S

2 Answers, 1 is accepted

Sort by
0
jagi
Top achievements
Rank 1
answered on 23 Oct 2011, 10:15 AM
Hi All,
               Is there any other approach to read the excel and display it in radgridview in client itself. This is urgent. Please help me,
0
Petar Mladenov
Telerik team
answered on 26 Oct 2011, 02:36 PM
Hello Jagi,

 Could you please examine this demo showing how to access an already uploaded file in the client? Please let us know if it helps you. If not, is it possible for you to send us more from your code and especially how you read the uploaded file? Thank you in advance. 

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Upload
Asked by
jagi
Top achievements
Rank 1
Answers by
jagi
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or