Showing posts with label items. Show all posts
Showing posts with label items. Show all posts

Monday, March 26, 2012

AJAX Toolkit - VB Toolbox Problem

Hi,

I am trying to add items to my newly created AJAX Toolbox, with "Choose Item" and no matter what i do i keep getting this error:

There was an error loading types from assembly "[location of AjaxControlToolkit.dll]" 'Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed'.

Any suggestions will be highly appreciated.

Thank you.

I ment to say VS Toolbox problem (as in Visual Studio).Embarrassed

hi there,

i had teh same problem . try building the ajax control toolkit solution and try adding the built dll. it worked for me.


Pretty please. Help needed!

I cannot use any controls from the Ajax Toolkit. Among other things, this is the error I get when i try to use such a control:

The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

As far as I know, I used the correct settings in my web.config.

Any ideas will be highly appreciated.


I had the same issue. What I did was add the Toolkit application to the application configuration in the .NET configuration tool. Then I installed the extenders by using AJAXControlExtender.vsi.

That worked for me...


Make sure your web.config includes the following line:

<compilationdefaultLanguage="c#"debug="true">

<assemblies>

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


If you put System.Web.Extensions.Design.dll and System.Web.Extensions.dll in your bin folder, i think you will see them..

Ajax Toolbox Additions

Just for the record, how many additional items should be added to Visual Studios toolbox? I installed both of the AJAX 1.0 Essential Components...the extensions and the toolkit. I only have 5 new items in my toolbox: Timer, ScriptManager, ScriptManagerProxy, UpdateProgress, UpdatePanel. Am I to assume that if I want to use any of the other new AJAX controls I have to grab the snippet from one of the examples? Or am I missing something??I actually figured it out from watching the install movie. That's pretty helpful. Although, I'm a little disappointed that MS didn't create icons for the new controls. That wouldn't have taken a graphic designer very long really. This is supposed to be a full release, kind of looks unfinished like that.
that's funny -- I didn't even notice the lack of icons...(or that most toolbox items have icons). I guess I'm more of a left brain type guy.
I'm both. I have an art degree but have done web development for nearly a decade. I just find it curious that something so small was left unfinished. I guess it really doesnt matter as long as the controls work.