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.

No comments:

Post a Comment