Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    May 27, 2011 @ 08:20
    dominik
    0

    Use AjaxControl Toolkit in usercontrol - Version conflict?

    Hello,

    I try to develop my own usercontrol in visual studio. Now i want to ask if it is possible to download the latest AjaxControlToolkit and use this in my usercontrol

    have i also to put the newest AjaxControlToolkit.dll into the umbraco bin folder? Or will this cause any conflicts because i think umbraco is also using ajaxcontroltoolkit but i can not find it in the bin folder

     

    Thanks

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    May 27, 2011 @ 09:54
    Michael Latouche
    0

    Hi dominik,

    It depends a little on which version of Umbraco/.Net framework you are using, because, if I remember correctly, up to Umbraco 4.7, Umbraco used the ".Net 2" version of the ajaxToolkit, which gave conflicts if you used the new version of the toolkit in your custom user controls.

    In any case, if you run into conflicts, there exists a package http://our.umbraco.org/projects/developer-tools/ajaxcontroltoolkit-v3x-for-umbraco where you can download an "ajaxControlToolkit35" assembly, which is basically a rename of the toolkit version 3.5. You can then reference it from Visual Studio and use it in your custom controls, and it will not conflict with the one used by Umbraco.

    Hope this helps.

    Cheers,

    Michael.

  • dominik 711 posts 733 karma points
    May 27, 2011 @ 09:56
    dominik
    0

    Thanks but is there no other way of easily use a ajax control toolkit in my visual studio?

    Otherwise on every umbraco update i have to check which version is used etc.

    Thanks

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    May 27, 2011 @ 10:22
    Michael Latouche
    0

    Well, I guess you can reference the one used by Umbraco from within Visual Studio, but I'm not sure where it resides :-S

    Maybe under umbraco/presentation/bin ?

    Cheers,

    Michael

  • dominik 711 posts 733 karma points
    May 27, 2011 @ 10:44
    dominik
    0

    Ok i can not find the ajax Control toolkit - i used the windows search

    So perhaps it is not used and i can add it as a normal dll by putting it into the bin folder?

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    May 27, 2011 @ 10:49
    Michael Latouche
    0

    Hi Dominik,

    Strange, but I am no expert in the Umbraco structure/architecture (maybe you can find some info in the web.config?) ;-)

    Then I would indeed just try putting the dll in the bin folder and see what happens. If then you run into issues we can look further from there.

    Cheers,

    Michael.

  • dominik 711 posts 733 karma points
    May 27, 2011 @ 11:05
    dominik
    0

    Ok i found it in the normal bin folder but with an old version. I tried to update it but now i get XSLT errors on each XSLT Macro.

    I think it is used by any extension i have installed.

    How can i update a dll to a newer version?

     

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    May 27, 2011 @ 11:17
    Michael Latouche
    0

    Hi Dominik,

    I think then you either have to update your controls to reference and work with the "old version", or else to install the new version as "ajaxControlToolkit35" like mentioned above, and then update the reference in your VS project. I also found this wiki page : http://our.umbraco.org/wiki/how-tos/adding-ajaxcontroltoolkit-v3-support-to-umbraco

    Wat you can maybe also try, is overwriting the old version by the new version and then do a binding redirect of the old ajax toolkit to the new one by adding the following under the <runtime> element of your web.config:

    <dependentassembly>
        <assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.0.30512.20315" />
    </dependentassembly

    By doing this, you tell assemblies using the old version, to "redirect" and use the new version.

    Cheers,

    Michael.

  • dominik 711 posts 733 karma points
    May 27, 2011 @ 11:22
    dominik
    0

    Ok one question. Where i get the exact version of my dll?

    And how can i see which extension is using the current dll?

     

    Thanks

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    May 27, 2011 @ 12:03
    Michael Latouche
    0

    Hi dominik,

    To get the exact version of your dll, do a right mouse click on it, and then go to the "details" tab. There you have to get the value of the "product version" property.

    For your second question, I have no idea :-S

    Cheers,

    Michael.

Please Sign in or register to post replies

Write your reply to:

Draft