Last post Dec 08, 2009 05:29 AM by Amin BenBrahim
Dec 02, 2009 06:32 PM|Amin BenBrahim|LINK
after i downloaded the ajax toolkit, and added it to the visual studio 2005; whenever i add any ajax component like the calender extender and i want to compile and run my form, i have the following error:
"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=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."
after that, whenever i try to add the follwing line in my form.aspx.cs file: "using System.Web.UI.ExtenderControl;" i get the follwing error:
"The type or namespace name 'ExtenderControl' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)"
but when i check in the source code of the form i find the following line:
"<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>"
can any one help me with this please? i really couldnt find what is wrong?
should i add somthing to the library?? but stilli dont know how..
many thanks in advance
Dec 03, 2009 12:32 AM|bloggernext|LINK
Based on your description, it seems there is something wrong with your web.config file.
This documentation (http://asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx ) explains what are necessary and why.
Or you can use the default web.config file in this folder: [Program Files]\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config
or if it still does not work follow the below steps
1. Install Ajax Extension on the server
2. The virtual directory is configured as a application in IIS
3. The ASP.NET version of the application is configured to 2.0
4. Add some entries in web.config to register necessary assembles, HttpHandlers, etc. The easiest way is to create a website using the ASP.NET AJAX-Enabled Web Site template.
If you need to update an existing site, please edit the web.config file manually.
and refer this link again
Dec 08, 2009 05:06 AM|Amin BenBrahim|LINK
thank you, it really was about the web.config file, and the link you provided was really helpful.
but i'm still facing an error:
"Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\Documents and Settings\Administrator\My Documents\Visual
Studio 2005\WebSites\WebSite1\web.config line 74)"
Line 73: <httpModules>
Line 74: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 75: </httpModules>
how can i fix this please?
Dec 08, 2009 05:29 AM|Amin BenBrahim|LINK
well, what i did next is that i located the system.web.extensions.dll file and copied it to the bin folder in my project, so now i'm having anew type of error:
"Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040) (C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite1\web.config line 74)"
and still with same details, it's in the HttpModules script...