0

尝试设置 Ajax 时,我从 IE 收到此错误消息

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'Ajax' or one of its dependencies. The system cannot find the file specified.

Source Error: 


Line 13:       <!-- Register the ajax handler -->
Line 14:       <add verb="POST,GET" path="ajax/*.ashx"
Line 15:            type="Ajax.PageHandlerFactory, Ajax" />
Line 16:     </httpHandlers>
Line 17: 

我添加到我的 bin 文件夹的文件是 AjaxPro.dll,并且我已将上述代码添加到配置文件中。

谁能告诉我如何解决这个问题?

PS我一直用这个作为指南 MSDN页面

4

2 回答 2

0

我面临同样的问题。目前我的网络配置是

  <system.webServer>
         <handlers>
              <add name="AjaxPro" verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
          </handlers>
      <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>

它工作正常。

于 2014-12-05T17:37:23.393 回答
0

试试看

添加对 AjaxPro.2.dll 的引用

(对于 .NET 1.1 框架使用 AjaxPro.dll)

将以下行添加到您的 web.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <httpHandlers>
      <add verb="POST,GET" path="ajaxpro/*.ashx" 
             type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
    </httpHandlers>

...

对于 .NET 1.1 框架,使用 AjaxPro.dll 将以下行
添加到您的 web.config:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.web>
        <httpHandlers>
          <add verb="POST,GET" path="ajaxpro/*.ashx"
                 type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>

...
于 2012-08-02T14:47:41.590 回答