Hello. I'm trying desperately to get ASP.NET AJAX to work in Visual Studio. I've done every solution I can find anywhere, and nothing seems to work. Its just error after error after can't find this assembly or can't find that assembly. I will explain what I have done so far, and paste some relevant code from my machine. PLEASE tell me what i'm doing wrong!
First, downloaded AJAX Extensions for ASP.NET from Microsuck. Installed fine.
Next, downloaded AJAX Futures (CTP), installed fine.
Then went in a modified my web.config, based on MSDN's recommendations for an AJAX Enabled CTP site. (Full web config, with any conn strings pasted below).
Then, added a reference to the AJAX dlls and the CTP dlls to the project (AJAXExtensionsToolbox.dll
, Microsoft.Web.Preview.dll)
Then, added a register tag to the ajaxtoolkit on my master page, as recommended by MSDN. (<%@ Register Assembly="AjaxControlToolk
it, Version=1.0.10123.0, Culture=neutral, PublicKeyToken=28f01b0e84b
6d53e" Namespace="AjaxControlTool
kit" TagPrefix="ajaxtoolkit" %> )
Then created a test aspx page, and added the following code (as per the sample on the toolkit homepage:
<asp:Content ID="Content1" ContentPlaceHolderID="Main
Content" runat="server">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Text="1" Value="1"></asp:ListItem>
<asp:ListItem Text="2" Value="2"></asp:ListItem>
</asp:DropDownList>
<ajaxToolkit:DropDownExten
der runat="server" ID="DDE" TargetControlID="Label1" DropDownControlID="DropDow
nList1">
</ajaxToolkit:DropDownExte
nder>
</asp:Content>
Forget it, errors up the butt. I'll list some of them below, then copy and paste my full web config for the project. What the hell am I doing wrong? I've literally been at this for days now trying to get it to work.
Errors (from the VS compiler) :
from the web.config : about 37 errors of "Could not find schema information for ..." [fill in the blank]
from the master page (where the register tag is) : Error 38 Could not load file or assembly 'AjaxControlToolkit, Version=1.0.10123.0, Culture=neutral, PublicKeyToken=28f01b0e84b
6d53e' or one of its dependencies. The system cannot find the file specified. C:\Users\Brian\Documents\V
isual Studio 2005\Projects\DSC\Main.mas
ter 4
FULL WEB.CONFIG FILE :
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extension
s" type="System.Web.Configura
tion.Syste
mWebExtens
ionsSectio
nGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35">
<sectionGroup name="scripting" type="System.Web.Configura
tion.Scrip
tingSectio
nGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35">
<section name="scriptResourceHandle
r" type="System.Web.Configura
tion.Scrip
tingScript
ResourceHa
ndlerSecti
on, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" requirePermission="false" allowDefinition="MachineTo
Applicatio
n"/>
<sectionGroup name="webServices" type="System.Web.Configura
tion.Scrip
tingWebSer
vicesSecti
onGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35">
<section name="jsonSerialization" type="System.Web.Configura
tion.Scrip
tingJsonSe
rializatio
nSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" requirePermission="false" allowDefinition="Everywher
e"/>
<section name="profileService" type="System.Web.Configura
tion.Scrip
tingProfil
eServiceSe
ction, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" requirePermission="false" allowDefinition="MachineTo
Applicatio
n"/>
<section name="authenticationServic
e" type="System.Web.Configura
tion.Scrip
tingAuthen
ticationSe
rviceSecti
on, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" requirePermission="false" allowDefinition="MachineTo
Applicatio
n"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings>
</connectionStrings>
<system.web>
<pages validateRequest="false" enableEventValidation="fal
se">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Exten
sions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.P
review.UI"
assembly="Microsoft.Web.Pr
eview"/>
<add tagPrefix="asp" namespace="Microsoft.Web.P
review.UI.
Controls" assembly="Microsoft.Web.Pr
eview"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<httpRuntime maxRequestLength="308000" executionTimeout="600"/>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Exten
sions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add assembly="System.Managemen
t, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Messaging
, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Data.Orac
leClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
4E089"/>
<add assembly="System.Configura
tion.Insta
ll, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Transacti
ons, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
4E089"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
4E089"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
4E089"/>
<add assembly="System.Enterpris
eServices,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Web.Servi
ces, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
4E089"/>
<add assembly="System.Drawing.D
esign, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D
50A3A"/>
<add assembly="System.Windows.F
orms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C56193
4E089"/></
assemblies
>
<buildProviders>
<add extension="*.asbx" type="Microsoft.Web.Previe
w.Services
.BridgeBui
ldProvider
"/>
</buildProviders>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Se
rvices.Scr
iptHandler
Factory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Se
rvices.Scr
iptHandler
Factory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.
ScriptReso
urceHandle
r, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" validate="false"/>
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Se
rvices.Scr
iptHandler
Factory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.
ScriptModu
le, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
</httpModules>
<customErrors mode="Off">
</customErrors>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.Convert
MeTypeConv
erter"/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="prop
ertyname1,
propertyna
me2"
writeAccessProperties="pro
pertyname1
,propertyn
ame2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConf
iguration=
"false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMo
de" type="System.Web.Handlers.
ScriptModu
le, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFac
tory-Integ
rated"/>
<add name="ScriptHandlerFactory
" verb="*" path="*.asmx" preCondition="integratedMo
de" type="System.Web.Script.Se
rvices.Scr
iptHandler
Factory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add name="ScriptHandlerFactory
AppService
s" verb="*" path="*_AppService.axd" preCondition="integratedMo
de" type="System.Web.Script.Se
rvices.Scr
iptHandler
Factory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add name="ScriptResource" preCondition="integratedMo
de" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.
ScriptReso
urceHandle
r, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
<add name="ASBXHandler" verb="GET,HEAD,POST" path="*.asbx" preCondition="integratedMo
de"
type="System.Web.Script.Se
rvices.Scr
iptHandler
Factory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
64e35"/>
</handlers>
</system.webServer>
<appSettings>
</appSettings>
</configuration>
Start Free Trial