Before you start this , I recommending you reading ‘ How to remove 'Sys' is undefined ? ’
Following are the required entries in your web.config file for the ASP.NET AJAX applications to work with out errors. If you are integrating AJAX in your ASP.NET 2.0 application , then only you need to check this .If you are creating from AJAX Enabled website template in Visual Studio , these will be added automatically .
1.CONFIG Sections : For registering the system.web.extensions namespace, assembly and the various handlers that are used in handling AJAX requests.
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35">
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"
allowDefinition="MachineToApplication"/>
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"
allowDefinition="Everywhere"/>
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"
allowDefinition="MachineToApplication"/>
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"
allowDefinition="MachineToApplication"/>
2. In your system.web Node , Make sure you have these entries so that we can register the " asp " tag prefix to AJAX Controls .
PublicKeyToken=31bf3856ad364e35"/>
3. Now find <compilationdebug="false> and add the following.This enables compilation of your website by referring to the following assemblies.
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"validate="false"/>
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
and add a custom converter -->
"Acme.SubAcme.ConvertMeTypeConverter"/>
authentication service. Include requireSSL="true" if appropriate. -->
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
"propertyname1,propertyname2"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
preCondition="integratedMode"type=
System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
path="*_AppService.axd"preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
verb="GET,HEAD"
"System.Web.Handlers.ScriptResourceHandler,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Simple ain't it ? For getting Simpler solutions ,Subscribe to Technova feed or click here to get updates via email .

0 comments:
Post a Comment