A while ago I installed the Ajax Control Toolkit in my project via NuGet. However when I try to use a control such as the HtmlEditorExtender it does nothing.
I have tried to use both the ScriptManager and the ToolkitScriptManager but there is no difference. When I try to run a page in debug which uses the controls I get alot of Javascript errors such as:
Runtime error in Microsoft.JScript: Sys has not been defined. (Get this on every page.)
Runtime error in Microsoft.JScript. ASP.NET Ajax client-side framework failed to load.
Not sure if it's relevant but the menu, that is already included when you use the ASP.NET Web Application template, was first working fine and then it ended up like
this. The menu is suppose to be a dynamic menu.
I'm sorry I wasn't describing the issue I was having that well. I'm using the ASP.NET Web Application template as I said earlier. I am using the .NET version 4 and from looking at the last link you sent me it seems that my web.config is lacking quite a few
settings. Could you be so kind to point out what is wrong with it?
Zimpe
Member
20 Points
8 Posts
Having problems using the Ajax Control Toolkit.
Feb 14, 2012 03:52 PM|LINK
A while ago I installed the Ajax Control Toolkit in my project via NuGet. However when I try to use a control such as the HtmlEditorExtender it does nothing.
I have tried to use both the ScriptManager and the ToolkitScriptManager but there is no difference. When I try to run a page in debug which uses the controls I get alot of Javascript errors such as:
Not sure if it's relevant but the menu, that is already included when you use the ASP.NET Web Application template, was first working fine and then it ended up like this. The menu is suppose to be a dynamic menu.
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: Having problems using the Ajax Control Toolkit.
Feb 15, 2012 02:31 AM|LINK
Hi,
There are lots of scenarios bing on the 'sys' error.
You can check these thread:
http://forums.asp.net/p/1209962/2132128.aspx#2132128 Generally speaking, the sys problem should be resolved by using this appraoch.
If not, you can check this sys problem FAQ thread:
Getting error while running Ajax application. Error:'Sys' is undefined.
Error: ASP.NET Ajax client-side framework failed to load. http://forums.asp.net/t/1243449.aspx#2291128
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Zimpe
Member
20 Points
8 Posts
Re: Having problems using the Ajax Control Toolkit.
Feb 16, 2012 01:36 PM|LINK
Hello again.
I'm sorry I wasn't describing the issue I was having that well. I'm using the ASP.NET Web Application template as I said earlier. I am using the .NET version 4 and from looking at the last link you sent me it seems that my web.config is lacking quite a few settings. Could you be so kind to point out what is wrong with it?
<?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> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="Kawanoikioi.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </modules> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> <connectionStrings> <add name="KawanoikioiDbContext" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI; database=Kawanoikioi" providerName="System.Data.SqlClient" /> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true; database=Kawanoikioi" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <httpModules> <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </httpModules> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler" validate="false"/> </httpHandlers> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> </authentication> <membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <profile> <providers> <clear /> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> </providers> </profile> <roleManager enabled="true"> <providers> <clear /> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers> </roleManager> <pages theme="Default"> <controls> <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /> </controls> </pages> </system.web> <applicationSettings> <Kawanoikioi.Properties.Settings> <setting name="SiteName" serializeAs="String"> <value>Kawanoikioi</value> </setting> <setting name="LogoUrl" serializeAs="String"> <value /> </setting> </Kawanoikioi.Properties.Settings> </applicationSettings> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> </system.serviceModel> </configuration>