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

Works on local in vs but not once put on the server??!

11 Answers 281 Views
Upload
This is a migrated thread and some comments may be shown as answers.
herve
Top achievements
Rank 1
herve asked on 30 Dec 2008, 12:18 PM
hi,
following tutorials here and there, i ve been able t get radupload working with vs http://localhost:2645/blabla/RadUploadHandler.ashx

once i got it working, i ve upload it all on the server and this is my xaml file:
<telerikInput:RadUpload IsAutomaticUpload="True"
                        OverwriteExistingFiles="True"
                        UploadServiceUrl="http://localhost/dev/upload/1/RadUploadHandler.ashx"
                        TargetFolder="uploads" />
        
    </Grid>
</UserControl>


even if i change the localhost by the public ip, it still doesn t work, upload doesn t start.
any idea why?

best regards





11 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 31 Dec 2008, 06:56 AM
Hello Herve,

A possible reason my be if you are trying to upload cross domain. If this is the case please follow instructions at
Making a Service Available Across Domain Boundaries. Attached you can find a simple clientaccesspolicy.xml file.

If this is not the case please try to access the upload handler directly in your web-browser (according to your example: http://localhost/dev/upload/1/RadUploadHandler.ashx) and check the response looks similar to:
{"JSONData":[{"Key":"RadUAG_message","Value":"Empty file name"},{"Key":"RadUAG_success","Value":false}]}
If the response is OK please check whether the target folder is physically available - uploads in your example.

Best wishes,
Ivan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
herve
Top achievements
Rank 1
answered on 31 Dec 2008, 03:24 PM
hi ivan,
well when i try from the server http://localhost/dev/upload/1/RadUploadHandler.ashx i get :
{"JSONData":[{"Key":"RadUAG_message","Value":"Empty file name"},{"Key":"RadUAG_success","Value":false}]}

when i try http://80.245.17.2/dev/upload/1/RadUploadHandler.ashx i get the same result.
when i upload from the server, it works like a charm, but no success when i try in remote using http://80.245.17.2/dev/upload/1/

:'(((((
i tried to put the file you gave me at the root as explained in the tutorial but no change :'(
how come is it so complicated to try to upload a file?
best regards
herve
0
Valentin.Stoychev
Telerik team
answered on 05 Jan 2009, 09:30 AM
Hello herve,

Are you getting any errors when you hit the upload button? Are you seeing the "warning" icon when the upload of file fails?

If you are seeing the "warning" icon please mouseover it and you will get the error as a tooltip.

If there is no any sign of error please attach the application so we can debug it on our machines.

Also can you please confirm that the "uploads" folder is properly configured and that it exists on your stage server.

Thanks!

Best wishes,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
herve
Top achievements
Rank 1
answered on 05 Jan 2009, 11:37 AM
hi valentin,
thx a lot for your reply, unfortunately, i don t see any errors :'(
here is a link if you want to give it a try:
http://80.245.17.2/dev/upload/1/

how can i attach files here?
best regards
herve
0
Valentin.Stoychev
Telerik team
answered on 05 Jan 2009, 12:03 PM
Hi herve,

You can't attach projects in forum requests - only when you create a support request.

I found where the problem is - you need to change the UploadServiceUrl property to be like that:
http://80.245.17.2/dev/upload/1/RadUploadHandler.ashx

Pls fix that, deploy to your server and let us know if you still have problems.
Your page.xaml should look like that:
<UserControl xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"  x:Class="upload11.Page" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    Width="400" Height="300">  
    <Grid x:Name="LayoutRoot" Background="White">  
<telerikInput:RadUpload IsAutomaticUpload="True"   
                        OverwriteExistingFiles="True" 
                        UploadServiceUrl="http://80.245.17.2/dev/upload/1/RadUploadHandler.ashx" 
                        TargetFolder="uploads" /> 
          
    </Grid> 
</UserControl> 
 


All the best,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
herve
Top achievements
Rank 1
answered on 06 Jan 2009, 08:48 AM
hi valentin,
thxx a lot, it works like a charm now :)
i gonna open a support request cause now i have detailled questions
best regards
herve
0
Jim
Top achievements
Rank 1
answered on 11 Jul 2010, 01:51 AM
I'm getting the warning icon (along with an incorrect message that says "Upload Done"), but there's no tooltip when I hover over it, and nothing happens when I click it.  Is there a way to figure out what this warning icon means?

I assume it's finding the upload handler, because when I upload a large file, it takes a long time before the warning icon appears, and I don't see how it can upload at all without finding the handler.  However, on the debug machine, a breakpoint in the handler is never hit.
0
Jim
Top achievements
Rank 1
answered on 11 Jul 2010, 03:29 AM
It must not be finding my upload handler, and using a generic one instead.  However, I can't figure out why or what I changed to make it stop working.  Some kind of error message with some details would be most helpful.
0
Valentin.Stoychev
Telerik team
answered on 12 Jul 2010, 07:48 AM
Hi James,

What is the version of the controls that you are using. Have you customized the upload handler on the server?

Sincerely yours,
Valentin.Stoychev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jim
Top achievements
Rank 1
answered on 12 Jul 2010, 08:41 PM
Version:  RadControls for Silverlight Q1 2010 SP2

Yes, I have customized the handler, but on the debug system, a breakpoint set at the beginning of ProcessStream() in the custom handler is never hit, even though the progress bar shows the file being uploaded.  Also, no log entries are made, so it must be calling a generic handler instead of mine.

I'll made ticket  327230 with attachments.
0
Jim
Top achievements
Rank 1
answered on 17 Jul 2010, 03:06 AM
I think I've figured it out.

If an error occurs in the upload handler, the handler is immediately stopped, and and a warning icon is shown with a tooltip message that is not necessarily accurate.  It may, for example, say the file already exists.  (Before the 2010 Q2 release in July, there was no tooltip message at all.)

Since the handler is stopped, breakpoints will not be hit if the error occurs first.  (Similarly for log entries.)  You may not receive any accurate information about the problem, even in the debugger.  Be sure to put breakpoints very early in the handler, for example in ProcessStream().
Tags
Upload
Asked by
herve
Top achievements
Rank 1
Answers by
Ivan
Telerik team
herve
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Jim
Top achievements
Rank 1
Share this question
or