Showing posts with label ajaxcontroltoolkit. Show all posts
Showing posts with label ajaxcontroltoolkit. Show all posts

Wednesday, March 28, 2012

Consistent nuisance with AjaxControlToolkit. Possible PublicKeys.

Hi.

I've been developing a web site in Visual Studio 2005. I had various problems with the Ajax Extensions such as ScriptManager and UpdatePanel. They were all of validation nature for ASP and sometimes went away without notice and sometimes opening up the Web.config was enough. Not logical to me I kept on and then finally ended up updating Visual Studio to Service Pack 1. All of the problems are now gone but then, new one surface.


Even when I make a new AjaxControlToolkit enabled web site, and just drag and drop a TextBox and AutoCompleteExtender, I get validation errors on both the AutoCompleteExtender and then the default added ToolkitScriptManager. The error I get is sometimes of the likes of

Error 34 Element'ToolkitScriptManager'is not a known element. This can occurif thereis a compilation errorin the Web site.

And yeah, the build failes. Then I get this error:

Error32Requestfor the permission of type'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
 
So, just so you know what I've tried to do to fix this. I've tried: * Searched the PublicKeyToken and changed it to all uppercase.

* Reinstalled the Ajax Extension msi
* Re-added the AjaxControlToolkit in to the Toolbox (reset it first).
* Put the Trust Level to Medium in web.config.
* Taken out PublicKeyToken on System.Web.Extensions

And this is happening to me with default values of all things. I really understand if some of you who are kind enough to try and help me can't reproduce this error but,
these errors have crippled my work for 2 days by now and it's really uncomfortible to realise that this tool that's supposed to help me is more a burden then help.
I can pass on a screenshot of this peculiar error and it's safe to say that I expected more from Microsoft.

Hi,

This seems to be a security issue, please specify trust level to FullTrust and try again.

Wednesday, March 21, 2012

Compatability Issues ? AjaxControlToolkit.dll

Hi I am using both the AjaxControlToolkit version 1.0.10301.0 AjaxControlToolkit version 1.0.10920.0 and i'm getting compatability issues, either a failure to load the assembly, or after I added the files to the GAC now getting ambigious namespace errors.

Can you inform me of a way of having both the version of the AjaxControlToolkit assemblies running within the same application.?

thanks.

i have two applications which are using different version of ajaxcontroltoolkit

<addtagPrefix="asp1"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.10920.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<addtagPrefix="asp0"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<addnamespace="AjaxControlToolkit"assembly="AjaxControlToolkit"tagPrefix="ajaxToolkit"/>

in my web.config i ahve the above three lines but getting error

Error 133 Could not load file or assembly 'System.Web.Extensions, Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.


Error 134 Could not load file or assembly 'System.Web.Extensions, Version=1.0.10920.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.


I don't understand what benefit you are trying to gain by running two versions. Each version is basically backwards compatible. Trash them both and download the latest version and only use that (Version 1.0.11119.0).

http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=8513

Don't install version 3.0.11119.0 unless you are running Visual Studio 2008.


Thanks

i have installed ASPAJAXExtSetup.msi from :http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en

and remove the previous version but i dont see the dll in GAC ? and where do i see the installed version?


even thou i remove the previous version(1.0.61025.0 ) and install the new version (1.0.10920.0) and when i create a new web site project ajax enabled i see the old version (1.0.61025.0) in the web.config?

<controls>
<addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>

<assemblies>
<addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>

what else i'm missing?


My apologies. I was still half asleep this morning and I copied and pasted the wrong version numbers. 1.0.61025.0is the lastest version of the ASP.NET AJAX Extensions. If your web.config is showing that, you are where you want to be. The 1.0.11119.0 that I told you is the latest version of the Toolkit. But this should have solved your intial problem, correct?


DisturbedBuddha:

My apologies. I was still half asleep this morning and I copied and pasted the wrong version numbers. 1.0.61025.0is the lastest version of the ASP.NET AJAX Extensions. If your web.config is showing that, you are where you want to be. The 1.0.11119.0 that I told you is the latest version of the Toolkit. But this should have solved your intial problem, correct?

after spending lot of my time i figured out that 1.0.6 is the latest ext and 1.0.9 is the latest toolkit.

thanks