Access to the path is denied in Radupload with Silverlight

3 posts, 0 answers
  1. jagi
    jagi avatar
    2 posts
    Member since:
    Jun 2006

    Posted 22 Oct 2011 Link to this post

    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. jagi
    jagi avatar
    2 posts
    Member since:
    Jun 2006

    Posted 23 Oct 2011 Link to this post

    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,
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 26 Oct 2011 Link to this post

    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 >>

Back to Top