Last post Sep 14, 2012 11:03 PM by necro_mancer
Sep 13, 2012 12:24 AM|dezinnia|LINK
One of my pages has an AjaxControlToolkit control, and it's throwing this error:
Parser Error Message:
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
The error references the Ajax toolkit assembly line on that page...
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %>
Everything runs peachy on my local machine, launched from Visual Web Developer.
I've uploaded the BIN directory, with the DLL and PDB files in it, to the web host.
Tried to add a new reference, and I see Ajax Control Toolkit in the properties pages. But I don't see where that would
be added to the webserver. (It's not like I can add a folder with references.) Does something need to be added to the web.config file?
Is it something that the web host needs to support? The server supports .NET 4.0, but do I need to ask "Do you guys support Ajax Toolkit controls?"
Sep 13, 2012 12:29 AM|ItsSunny|LINK
it occurs if there is a mismatch of toolkit version specifed in your web.config and the one in your server.chech this
Sep 13, 2012 03:42 PM|dezinnia|LINK
Thanks, yeah, I wondered that, too.
I don't specify a version in my web.config file, but I'm guessing this is the reference...
<add assembly="System.Design, Version=220.127.116.11, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=22.214.171.124, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
I asked the ISP if they support the AJAX Toolkit extensions, and they said they did, Version 2.0. Well, that doesn't seem right. The server supports .NET 4.0 framework; wouldn't it also support the Ajax Toolkit 4.0 extensions, too?
I found this one, and added it (both with the other assemblies, and alone)...
<add assembly="System.Design, Version=126.96.36.199, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
But it made no difference.
Any ideas? Is it the web host that is supporting a too-old platform?
Sep 14, 2012 02:26 AM|necro_mancer|LINK
I can confirm that the AJAX Control Toolkit is not properly installed on your host server. The issue is not with your code, but with your host server provider. The issue can be resolved if and only if your host installs the AJAX Control Toolkit version that
matches the one used on your code.
Please mark this response as an "answer" if it helps you. Thanks heaps!
Sep 14, 2012 09:03 AM|dezinnia|LINK
I also see you helped in this thread:
But, if the host is supporting ASP.NET 4.0, wouldn't they have the most current version of the Toolkit? (At least I thought that's what I understood from your post in that thread.) What, exactly, should I tell the tech guys at the web host? To update the
toolkit so it matches the ASP.NET 4.0 version?
I don't want to say "install this to match MY code"... I just want to say, "Please match the toolkit to the platform you're hosting." (Or something like that...)
And is the toolkit the host would install the very same as the one I installed in Visual Web Developer? Or what do they need to install, exactly? (I don't want to do their work, but I want to make it clear and easy!)
You also mentioned something in your post about the httphandler... "make sure you set the HttpHandler on the IIS to "revert to inherited". Is that also something I should tell the host?
(thanks; I'm new to this asp.net stuff!)
Sep 14, 2012 11:03 PM|necro_mancer|LINK
Please be advised that if you have this issue, your host should be able to resolve it (even without you telling them to install this and that). The error message is trivial and your current host should be able to resolve it easily.
If they do not know what they should do, yes, you can share the information about reverting the HTTPHandler to Inherited mode. If they are still giving you headache, you can consider switching to