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
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.
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:
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.
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
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.
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
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
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?
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.
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?
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:
By doing this, you tell assemblies using the old version, to "redirect" and use the new version.
Cheers,
Michael.
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
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.
is working on a reply...