Case Sensative

2 posts, 0 answers
  1. David Ocasio
    David Ocasio avatar
    157 posts
    Member since:
    Nov 2009

    Posted 19 Mar 2012 Link to this post

    I am using your uploader component
    but i have come accross a difficult issue

    the xaml is like so
    take note of the uploadserviceurl

    <telerik:RadWindow x:Class="Proto.FileUploader" 
               d:DesignWidth="640" d:DesignHeight="480" WindowStartupLocation="CenterOwner">
        <Grid x:Name="LayoutRoot">
            <telerik:RadUpload x:Name="RUWFile"
                                   Filter="Excel Workbook (*.xls;*.xlsx)|*.xls;*.xlsx"
                                   HorizontalAlignment="Stretch" MaxHeight="2000"

    if i browse to my site using 

    the uploader works

    if i browse to my site using
    the uploader fails trying to find the upload handler

    The physical path to the handler is indeeed "Proto1"

    any help would be appreciated

    Please find attached some snapshots to give some context.


  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 22 Mar 2012 Link to this post

    Hi David,

    The RadUpload control constructs the path to the UploadServiceUrl based on the URI of the Silverlight XAP package: System.Windows.Application.Current.Host.Source. Then it strips down this path like this:
    Uri source = System.Windows.Application.Current.Host.Source;
    string serverPath = source.AbsoluteUri.Remove(source.AbsoluteUri.Length - source.AbsolutePath.Length - source.Query.Length);
    and the serverPath is combined with the value of the UploadServiceUrl property in order to construct the full path to the UploadHandler. Then the RadUpload logic makes a query to that handler based on the constructed path. We don't have a control over the query results as they strongly depend on the server settings.

    This is why we believe that the issue might be caused by settings in your server environment. Sometimes even if the domain name component isn't case sensitive, the path name can be. Can you check if both and paths allow you to access the handler. The result of a successful query is shown here. If one of the paths don't work the Upload control won't be able to upload the selected files.

    Tina Stancheva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top