When you create a new ASP.NET website project in Visual Web Developer, the following error will occur if AJAX controls are used:
Microsoft JScript runtime error: 'Sys' is undefined
In order to avoid this error, you need to add the following configuration to the web.config file
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
Programmers Visited
Topics
- Active Directory Services (1)
- AJAX (8)
- ASP.NET (11)
- ASP.NET MVC (1)
- Assembly (4)
- CSS (1)
- Deployment (1)
- Design Patterns (54)
- General (1)
- Interview (1)
- OOPS (2)
- SQL Server (2)
- WCF (1)
- Windows Service (2)
- WPF (2)