Radupload Ajax Callback Error

4 posts, 0 answers
  1. Ryan Grossman
    Ryan Grossman avatar
    79 posts
    Member since:
    Mar 2004

    Posted 30 Sep 2009 Link to this post

    I have an issue with the Upload progress monitor. It works fine when I leave out my tracking information from the global.asax file.

    If I put the following in my global.asax, I get the error asking if I registered the RadUploadProgressHandler in the web.config.

    Why????   If I comment out everything from my PreRequestHandler, the progress monitor works fine...

    In my global asax...

    Protected Sub Application_PreRequestHandlerExecute()
     If HttpContext.Current.User.Identity.IsAuthenticated Then
        Dim MyConnection As SqlConnection
       
           MyConnection = New SqlConnection("server=kkkkkkk;" _
           & "database=kkkkkk;User ID=kkkk;Password=kkkkkkkkkkkk;")
         
           Dim myCommand As SqlCommand
           Dim insertCmd As String
         
           insertCmd = "insert into PageLog (PageUI, PageUD, PageIP, PageAG, PageBW, PageUL, PageUR, PageDT) values ('" & Session("UserID") & "', '" & Session("LoginID") & "', '" & Request.UserHostAddress & "', '" & Request.UserAgent & "', '" & Request.Browser.Browser & "', '" & Request.Path & "', '" & Request.RawUrl & "', getdate());"
       
           myCommand = New SqlCommand(insertCmd, MyConnection)
           myCommand.Connection.Open()
           myCommand.ExecuteNonQuery()
           myCommand.Connection.Close()
     End If
    End Sub
  2. Ryan Grossman
    Ryan Grossman avatar
    79 posts
    Member since:
    Mar 2004

    Posted 30 Sep 2009 Link to this post

    I got the progressbar working again by adding the bolded info below...

    I noticed in my logging table the info below and decided to try and skip it. Is this an acceptable workaround?
    /hart11/content/contacts_edit.aspx?Edit=Y&CID=300011&RadUrid=5e4aa016-240b-4622-a3bc-53e4798737fa

    If Request.RawUrl LIKE "*RadUrid*" Then
    Else

     If HttpContext.Current.User.Identity.IsAuthenticated Then
        Dim MyConnection As SqlConnection
       
           MyConnection = New SqlConnection("server=127.0.0.1;" _
           & "database=ddddd;User ID=ddddddddd;Password=dddddddddd;")
         
           Dim myCommand As SqlCommand
           Dim insertCmd As String
         
           insertCmd = "insert into PageLog (PageUI, PageUD, PageIP, PageAG, PageBW, PageUL, PageUR, PageDT) values ('" & Session("UserID") & "', '" & Session("LoginID") & "', '" & Request.UserHostAddress & "', '" & Request.UserAgent & "', '" & Request.Browser.Browser & "', '" & Request.Path & "', '" & Request.RawUrl & "', getdate());"
       
           myCommand = New SqlCommand(insertCmd, MyConnection)
           myCommand.Connection.Open()
           myCommand.ExecuteNonQuery()
           myCommand.Connection.Close()
     End If
    End If
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ryan Grossman
    Ryan Grossman avatar
    79 posts
    Member since:
    Mar 2004

    Posted 06 Oct 2009 Link to this post

    Having the same issue now using the spell check?
  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 09 Oct 2009 Link to this post

    Hello Ryan,

    This is URL rewriter problem. To fix it please set the AjaxUrl property to point to the ~/Telerik.Web.UI.SpellCheckHandler.axd file, e.g.

    RadEditor:
    RadEditor1.SpellCheckSettings.AjaxUrl =  "~/Telerik.Web.UI.SpellCheckHandler.axd"
    ;

    RadSpell:
    RadSpell1.AjaxUrl = "~/Telerik.Web.UI.SpellCheckHandler.axd";

    You can also see the following article which provides guidance for the same problem occurring in the RadEditor dialogs: Error: Web.config registration missing! The Telerik dialogs require a HttpHandler registration in the web.config file.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top