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

Case Sensative

1 Answer 47 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.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 19 Mar 2012, 09:07 PM

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" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480" WindowStartupLocation="CenterOwner">
    <Grid x:Name="LayoutRoot">
        <telerik:RadUpload x:Name="RUWFile"
                               Filter="Excel Workbook (*.xls;*.xlsx)|*.xls;*.xlsx"
                               FilterIndex="0"
                               IsAutomaticUpload="False"
                               OverwriteExistingFiles="True"
                               UploadServiceUrl="/RUFileHandler.ashx"
                               TargetFolder="RUStaging"
                               HorizontalAlignment="Stretch" MaxHeight="2000"
                               VerticalAlignment="Stretch"
                               IsMultiselect="True"
                               IsDeleteEnabled="False"
                               IsAppendFilesEnabled="True"
                               Grid.RowSpan="2"/>
    </Grid>
</telerik:RadWindow>

if i browse to my site using
http://www2.inovisiondb.com/Proto1 

the uploader works

if i browse to my site using
http://www2.inovisiondb.com/proto1
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.

thanks
dco

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Mar 2012, 06:23 PM
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  http://www2.inovisiondb.com/Proto1/RUFileHandler.ashx and http://www2.inovisiondb.com/proto1/RUFileHandler.ashx 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.

Regards,
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 >>
Tags
Upload
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Tina Stancheva
Telerik team
Share this question
or