6
.添加
<
SafeControls
>
,这里同样配置版本升级
<
SafeControl
Assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
|
7
.最后,在
<
configuration
>
标记内的底部(仅在
configuration
>
之前),添加如下配置信息,对组件版本作了升级
<
system.web.extensions
>
<
scripting
>
<
webServices
>
webServices
>
scripting
>
system.web.extensions
>
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"/>
<
modules
>
<
add
name
=
"ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
modules
>
<
handlers
>
<
remove
name
=
"WebServiceHandlerFactory-Integrated" />
<
add
name
=
"ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add
name
=
"ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add
name
=
"ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
handlers
>
system.webServer
>
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"/>
<
modules
>
<
remove
name
=
"ScriptModule" />
<
add
name
=
"ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
modules
>
<
handlers
>
<
remove
name
=
"WebServiceHandlerFactory-Integrated"/>
<
remove
name
=
"ScriptHandlerFactory" />
<
remove
name
=
"ScriptHandlerFactoryAppServices" />
<
remove
name
=
"ScriptResource" />
<
add
name
=
"ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add
name
=
"ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add
name
=
"ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
handlers
>
system.webServer
>
|
8
.最后如果以前开发的
AJAX
部件绑定还是
1.0.61025.0
版本可以添加如下配置信息来做版本兼容。
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<
bindingRedirect
oldVersion
=
"1.0.61025.0" newVersion="3.5.0.0" />
dependentAssembly
>
assemblyBinding
>
runtime
>
|
完成。
配制后刷新
MOSS
网站首页,错误排除。
参考文章:
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html