I have an aspx page using ajax controls that is raising the exception...
Unhandled exception at line 22, column 5 in http://localhost:62516/ScriptResource.axd?d=HmPHS4c8DJOsyehLgTYT9F7Yw-
pybbFVxd14IJQsGAUER3poUaD5XAtYL_UUq9usm4Hzq_ZhnpBrOYV_cxmUbhJGvaAEu5CfGtEISj2PMfC-DXQuOU5r7NLIdquzm0O50&t=ffffffffda74082d
0x800a139e - JavaScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using
an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
...when I run it in debug. When I use the continue button the next exception is...
unhandled exception at line 1142, column 1 in http://localhost:62516/ScriptResource.axd?d=OFchIa8TEHI7HoGbRKmleS6dNot_Dp5NIQqtHyGVGacFXUIUJ-ZZcIKXONVaD22Bc97LUP0ZI-
vh7818xA7dqolQD6ZWwYTagCXbDJm9k_iWO2lVYlCrGvYtQw5YDt2vgfGwXshTyOojGC6010mwMQ2&t=ffffffffda74082d
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'registerComponent'
I tried updating my NuGet packages through <tools><library package manager><manage nuget packages for solution> and also cleaning out the bin folder in my project
before running the page in debug but get the same result. My web.config looks like...
<?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <configSections> <!-- For more information on Entity Framework configuration, visithttp://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections> <connectionStrings> <add name="a06DBconnection" connectionString="Data Source=DBNAMETEST-WEB\DBNAMETESTWEB;Integrated Security=True;Connect
Timeout=15;Encrypt=False;TrustServerCertificate=False;Initial Catalog=CATNAME;" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <authentication mode="None" /> <customErrors mode="Off" /> <compilation debug="true" targetFramework="4.5"> <assemblies> <add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C934E089" /> <add assembly="System.DirectoryServices.AccountManagement, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C934E089" /> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F1D50A3A" /> <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BFD364E35" /> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A534E089" /> </assemblies> </compilation> <httpRuntime targetFramework="4.5" /> <pages enableEventValidation="false"> <namespaces> <add namespace="System.Web.Optimization" /> <add namespace="Microsoft.AspNet.Identity" /> </namespaces> <controls> <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /> <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /></controls> </pages> <membership> <providers> <!-- ASP.NET Membership is disabled in this template. Please visit the following linkhttp://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET
Membership support in this template --> <clear /> </providers> </membership> <profile> <providers> <!-- ASP.NET Membership Profile is disabled in this template. Please visit the following linkhttp://go.microsoft.com/fwlink/?LinkId=301889 to learn about the
ASP.NET Membership support in this template --> <clear /> </providers> </profile> <roleManager> <!-- ASP.NET Membership Role is disabled in this template. Please visit the following linkhttp://go.microsoft.com/fwlink/?LinkId=301889 to learn about the
ASP.NET Membership support in this template --> <providers> <clear /> </providers> </roleManager> <!-- If you are deploying to a cloud environment that has multiple web server instances, you should change session state mode from "InProc" to "Custom". In addition, change the connection string named "DefaultConnection" to connect to an instance of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express. --> <sessionState mode="InProc" customProvider="DefaultSessionProvider"> <providers> <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf38564e35" connectionStringName="DefaultConnection" /> </providers> </sessionState> </system.web> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3ad364e35" /> <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856a4e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.1.0.4" newVersion="2.1.0.4" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b1f3b43a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.4.9.0" newVersion="1.4.9.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42606e9261f" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="AjaxMin" publicKeyToken="21ef50ced80f" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.14.5506.26196" newVersion="5.14.5506.26196" /> </dependentAssembly> </assemblyBinding> </runtime> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> <parameters> <parameter value="v11.0" /> </parameters> </defaultConnectionFactory> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> </providers> </entityFramework></configuration>
Can someone kindly show me what I need to do to get this to work? If I'm missing something fundimental please excuse I'm a newbie to Ajax and to .net in general.
Thanks tonnes for any help, Roscoe