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

Radupload Ajax Callback Error

3 Answers 72 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Ryan Grossman
Top achievements
Rank 1
Ryan Grossman asked on 30 Sep 2009, 07:39 PM
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

3 Answers, 1 is accepted

Sort by
0
Ryan Grossman
Top achievements
Rank 1
answered on 30 Sep 2009, 08:18 PM
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
0
Ryan Grossman
Top achievements
Rank 1
answered on 06 Oct 2009, 09:09 PM
Having the same issue now using the spell check?
0
Rumen
Telerik team
answered on 09 Oct 2009, 12:54 PM
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.
Tags
Spell
Asked by
Ryan Grossman
Top achievements
Rank 1
Answers by
Ryan Grossman
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or