配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误信息: 未能加载文件或程序集“Ajax”或它的某一个依赖项。系统找不到指定的文件。
源错误:
行 23: <system.web>
行 24: <httpHandlers>
行 25: <add verb= "POST,GET " path= "~/bin/*.ashx " type= "Ajax.PageHandlerFactory, Ajax "/>
行 26: </httpHandlers>
行 27: <!-- <authorization>
源文件: D:\web\web.config 行: 25
已经在项目中引入AjaxPro.2.dll了,请教该怎么解决
------解决方案--------------------------------------------------------
1.服务器上是否安装了ajax,
2.项目中是否引用了ajax。
3. 对比web.config,以下是范例:
<?xml version= "1.0 "?>
<configuration>
<configSections>
<sectionGroup name= "system.web.extensions " type= "System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ">
<sectionGroup name= "scripting " type= "System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ">
<section name= "scriptResourceHandler " type= "System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "MachineToApplication "/>
<sectionGroup name= "webServices " type= "System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ">
<section name= "jsonSerialization " type= "System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "Everywhere " />
<section name= "profileService " type= "System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "MachineToApplication " />
<section name= "authenticationService " type= "System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "MachineToApplication " />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<pages>
<controls>
<add tagPrefix= "asp " namespace= "System.Web.UI " assembly= "System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>
</controls>
</pages>
<!--
Set compilation debug= "true " to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug= "false ">
<assemblies>
<add assembly= "System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>