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

12 posts, 0 answers
  1. herve
    herve avatar
    29 posts
    Member since:
    Oct 2008

    Posted 30 Dec 2008 Link to this post

    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





  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 31 Dec 2008 Link to this post

    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.
  3. DevCraft banner
  4. herve
    herve avatar
    29 posts
    Member since:
    Oct 2008

    Posted 31 Dec 2008 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 05 Jan 2009 Link to this post

    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.
  6. herve
    herve avatar
    29 posts
    Member since:
    Oct 2008

    Posted 05 Jan 2009 Link to this post

    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
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 05 Jan 2009 Link to this post

    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.
  8. herve
    herve avatar
    29 posts
    Member since:
    Oct 2008

    Posted 06 Jan 2009 Link to this post

    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
  9. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 10 Jul 2010 Link to this post

    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.
  10. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 10 Jul 2010 Link to this post

    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.
  11. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 12 Jul 2010 Link to this post

    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
  12. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 12 Jul 2010 Link to this post

    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.
  13. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 16 Jul 2010 Link to this post

    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().
Back to Top
DevCraft banner