Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Scott 6 posts 26 karma points
    Nov 10, 2010 @ 12:07
    John Scott
    0

    Ajax control problems

    Hi

    I have created a custom control that works perfectly in the IDE on my local machine, however when I put it into Umbraco, the Ajax controls are not working correctly.

    I am using validator extenders. I have followed the instructions about installing the ajaxcontroltoolkit35.dll. Please could someone take a look and see if there is something obvious that I have missed? The control in question is the contact form which can be viewed and tested at:

    http://velosiweb.es4i.com/about-us/contact.aspx

    What seems to be happening, is that the validators are working correctly, as if the extenders do not exist. The validation does seem to work in real time after the first postback, which makes me think that some ajax functionality is working, just not as expected. I have tried using the IE developer toolbar to see if there are any javascript errors, but nothing seems apparent.

    Umbraco version is: 4.5.2 for .net 4

    asp.net ver 4

    windows server 2008 with iis7

    No stacktrace available.

     

    Regards

    John

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 10, 2010 @ 12:59
    Tim
    0

    Hiya,

    I'm not that up on the Ajax Control toolkit, but from taking a quick look at the page, it's throwing a javascript error saying that AjaxControlToolkit35 is undefined, are you missing some javascript files somewhere?

    Cheers,

    Tim.

  • John Scott 6 posts 26 karma points
    Nov 10, 2010 @ 13:07
    John Scott
    0

    Hi Tim

     

    Thanks for that. How did you get a javascript error. I have been trying really hard to get some feedback from the browser, and it's not forthcoming. I have the ajaxcontroltoolkit35.dll file in the bin folder. I assume that is enough. Does anyone know any different?

    I am going to remove it from the bin folder to see what happens.

    Regards

    John

  • John Scott 6 posts 26 karma points
    Nov 10, 2010 @ 13:13
    John Scott
    0

    Hi Tim

    I removed the ajaxcontroltoolkit35.dll from the bin folder and the control refused to load. Only a red rectangle appeared in it's place with an error message in it.

    Regards

    John

  • kerio sp 12 posts 33 karma points
    Nov 10, 2010 @ 13:23
    kerio sp
    0

    Hi, i've used ajaxcontroltoolkit (concrectly ver. 3.5) in some usercontrols, and i made use of the same ajaxcontroltoolkit.dll that is on the vs bin folder to deploy it to umbraco, so maybe it's possible for you use the same .dll in both sides, (that maybe is what is giving errors)

    Regards.

  • John Scott 6 posts 26 karma points
    Nov 10, 2010 @ 13:30
    John Scott
    0

    Hi Kerio

    I don't quite understand.

    I have attached the ajaxcontroltoolkit35.dll to vs, and have the same file deployed to the server. Should I be using a different verion of the file on the server than the one on the local machine?

    Regards

    John

  • kerio sp 12 posts 33 karma points
    Nov 10, 2010 @ 13:39
    kerio sp
    0

    No, sorry, I thought that you used different version for the ajaxcontroltoolkit.dll, because there is one personalized version for umbraco, and that this could be the problem.

    regards

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 10, 2010 @ 13:39
    Tim
    0

    I just loaded the link up in IE8. I get the little javascript exclamation mark in the bottom left of the window, and clicked on that to get the error message. It's something you usually get when there's a javascript file or something missing. I'm afraid I can't offer much help on how to work it out for the AjaxToolkit, as I don't have that much experience in using it!

    I'd check the site you have where it works properly and see if there are any .js files that appear to be associated with the toolkit.

  • John Scott 6 posts 26 karma points
    Nov 11, 2010 @ 13:13
    John Scott
    0

    Thanks Tim. A quick update on this:

    I installed the web application containing the user control into a separate domain, and it gives me the following errors:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; eMusic DLM/4; AskTB5.6; Creative AutoUpdate v1.40.02)
    Timestamp: Thu, 11 Nov 2010 12:13:11 UTC


    Message: ASP.NET Ajax client-side framework failed to load.
    Line: 42
    Char: 34
    Code: 0
    URI: http://www.raystorm.co.uk/music/


    Message: 'Sys' is undefined
    Line: 50
    Char: 1
    Code: 0
    URI: http://www.raystorm.co.uk/music/


    Message: 'Type' is undefined
    Line: 2
    Char: 1
    Code: 0
    URI: http://www.raystorm.co.uk/music/Default.aspx?_TSM_HiddenField_=ctl00_MainContent_ContactFormControl1_ToolkitScriptManager1_HiddenField&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit35%2c+Version%3d3.0.30512.22510%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a34d65f0c-7447-4d7d-bde9-ac22a7335970%3ac0c9b886%3a72717c12%3a9ce76ec2%3a7ed0955d%3a9dc6f995%3a94eafb88%3aeb6fa8d3


    Message: 'Sys' is undefined
    Line: 234
    Char: 1
    Code: 0
    URI: http://www.raystorm.co.uk/music/


    Message: 'Sys' is undefined
    Line: 362
    Char: 1
    Code: 0
    URI: http://www.raystorm.co.uk/music/

    All of these undefined items are in the generated page, but the first error is the most telling. I have asked my web hosting company to take a look and see if there is some misconfiguration on the server. If anyone has seen this before and knows what's going on, please let me know.

    Regards

    John

  • John Scott 6 posts 26 karma points
    Nov 17, 2010 @ 12:29
    John Scott
    0

    The guys at the ISP did something (not sure what and they claim that they didn't) but now the custom control works fine in it's own website here:

    http://www.raystorm.co.uk/music

    It still refuses to work in the Unbraco environment. The only error is this:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; eMusic DLM/4; AskTB5.6; Creative AutoUpdate v1.40.02)
    Timestamp: Wed, 17 Nov 2010 11:26:04 UTC


    Message: 'AjaxControlToolkit35' is undefined
    Line: 579
    Char: 5
    Code: 0
    URI: http://velosiweb.es4i.com/about-us/contact.aspx

    I have checked the installation of the AjaxControlToolkit35 and its references within the program and they are fine. The form at the other link is identical just running on a page by itself and poses no problems.

    Can anyoen offer any suggestion on where to look next?

    Regards

    John

     

  • fedar 10 posts 30 karma points
    Dec 27, 2011 @ 17:32
    fedar
    0

    I solved the problem by changing the ScriptManager in the template hosts control macro

    first add the reference

    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

    and then remove the scriptmanager and add  this

                <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>

Please Sign in or register to post replies

Write your reply to:

Draft