今日第一次玩AJAX,在本地我们调试运行AJAX.NET程序完全没有问题,但是一旦搭建网站后就出现 了一个Web.config文件异常:

Configuration Error
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 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。
------------------------------------------------
     Configuration Error 
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 'System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。

这个问题产生的原因据说还是出在微软本身,原本我们发布网站的时候都会自动生成dll文件到程序的bin目录。但是AJAX.NET 无法自动添加关键dll文件到bin目录。当服务器上的版本跟你我们开发时使用的ajax版本不一致(比如本地的ajax版本是老版本)的时候尤其容易出现这个问题,因此需要我们手动添加。
方法很简单,找到你开发环境中安装AJAX.NET 的目录,一般是类似C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025
把里面的System.Web.Extensions.dll文件和System.Web.Extensions.Design.dll文件复制到bin目录下就可以了。当然复制哪个文件要看你Web.config文件的异常信息而定。

Could not load file or assembly 'System.Web.Extensions相关推荐

  1. Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0

    前些天发现这个问题的,本来原有的项目是用VS2005开发的,后来装了VS2008,没想到问题就来了. 原项目是ASP.NET 2.0,用到了Ajax Extension,.NET 2.0用的Ajax ...

  2. Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5

    java 中调外部工具   做word转pdf ,没有生成pdf, log中出现 [开始转换文档... finish [WINWORD] convert. Could not load file or ...

  3. 报错:Could not load file or assembly ‘System.Core, Version=2.0.5.0

    报错: 环境: window xp sp3 net 4.0 报错: Could not load file or assembly 'System.Core, Version=2.0.5.0, Cul ...

  4. Net core 报 Could not load file or assembly ‘System.Security.Permissions 错误

    完整错误提示 System.IO.FileNotFoundException:"Could not load file or assembly 'System.Security.Permis ...

  5. System.IO.FileNotFoundException: Could not load file or assembly ‘System.Data.SQLite.dll‘ or one of

    软件的安装目录下明明存在类库System.Data.SQLite.dll,但程序调用该文件操作SQLite数据库时,却报错,如下图所示: 怎么都无法识别到与SQLite数据库相关的文件.走了很多弯路, ...

  6. Could not load file or assembly 'System.Core, Version=2.0.5.0

    项目中用的4.0,本机没问题,服务器上出现问题,查了一下发现  autofac 里面用的这个版本 解决:下载安装这个4.0的补丁 http://support.microsoft.com/kb/246 ...

  7. Could not load file or assembly (Exception from HRESULT: 0x80131047)-解决办法

    场景:.Net 4.0 MVC WebAPI 应用程序添加ApplicationInsights监控后在demo环境运行正常,发布到testing环境出现异常 异常信息: Could not load ...

  8. 错误 1 类型“System.Web.UI.ScriptManager”同时存在于“c:\windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0

    vs.net 2008中建ajax,调试时出现错误: 错误1 类型"System.Web.UI.ScriptManager"同时存在于"c:\windows\assemb ...

  9. System.IO.FileNotFoundException: Could not load file or assembly ‘xx.dll‘ or one of its dependencies

    Win10 或 Win7 运行 exe 文件报错: System.IO.FileNotFoundException: Could not load file or assembly 'xxx.dll' ...

最新文章

  1. 电子科大计算机组成原理ppt,电子科技大学,计算机组成原理3计算机组成原理-3-5-组合逻辑控制方式.ppt...
  2. java Datasource,数据库连接池
  3. 2013年3月百度之星A题
  4. PostgreSQL视频去重 图片去重系列1
  5. 如何避免学习linux必然会遇到的几个问题
  6. Flyod和Warshall
  7. 联想重装系统去掉保护_联想硬盘保护系统7.6卸载后PE还原系统步骤
  8. Photoshop基础照片美化
  9. 测试自动化风险或成功的条款
  10. 抑制剂拮抗剂等小分子化合物
  11. 【数学史】大富翁的概率
  12. 企业微信批量导入用户
  13. 人工智能之Python人脸对比、人脸检测
  14. java获取当前日期,前一天,前N天,去年同期等日期
  15. 云呐|PDA无线固定资产盘点管理系统
  16. 适用vue的html前台页面打印插件
  17. 什么是射频中经常提到的IQ信号?
  18. 【考研数学】考研数学一的相关课本电子版资源分享
  19. 夜游项目如何体现当地的文化特色
  20. 【模型蒸馏】TinyBERT: Distilling BERT for Natural Language Understanding

热门文章

  1. ZBrush关于遮罩的一些操作
  2. 基于STVD给stm8编程遇到的问题
  3. javascript DOM 编程艺术----笔记
  4. Python自动化之YAML解析
  5. 2016/09/14
  6. 使用java检测网络连接状况
  7. SQL Server select into 用法
  8. 警告:隐式声明与内建函数‘exit‘不兼容解决方案
  9. Wireshark抓包与常见问题解决
  10. VS2010 重命名文件:源文件名和目标文件名相同 的解决方案