惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Cloudflare Blog
L
LangChain Blog
WordPress大学
WordPress大学
V
V2EX
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
Recent Announcements
Recent Announcements
GbyAI
GbyAI
博客园 - 叶小钗
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog

博客园 - xh3

关于cookieless="true"与website.map冲突的一个问题! - xh3 - 博客园 关于AJAX.net的一个问题:回发或回调参数无效! - xh3 - 博客园 在Asp.net 2.0中用QueryString传递中文参数的解决方法! - xh3 - 博客园 在Asp.net 2.0 中禁用页面缓存解决页面刷新(重新加载数据)的问题! 在Asp.net 2.0中关于menu和treeview的几点使用注意! - xh3 - 博客园 Asp.net 2.0在Windows 2003 Server 上配置Microsoft Excel、Microsoft Word应用程序权限时 error: 8000401a 的解决方法! Asp.net 2.0 中 Cache 丢失的问题:“值不能为空”或“未将对象引用设置到对象的实例” 在Asp.net2.0中建立Microsoft.Office.Interop.Word.Application时出现“拒绝访问”错误的解决方法 经典英语口语228句(下) 经典英语口语228句(上) return confirm() 失效的一个解决方法! - xh3 ora-12154 TNS:"无法处理服务名"的一个解决方法 AJAX.NET 1.0 "Sys未定义" 解决方法 - xh3 如何在GridView中通过超级链接列打开服务器上的文档? - xh3 - 博客园 GridViewRow可以任意位置单击引发事件的方法! 如何在GridView中使用RadioButtons单选列! ASP.NET程序常用代码 - xh3 - 博客园 Windows XP系统优化简单实用版 Windows XP 常见进程列表
AJAX.NET 1.0 Configuration Error 解决方法
xh3 · 2007-04-07 · via 博客园 - xh3

开发环境:XP-sp2; VS 2005; IIS 5.1; ASP.NET 2.0 AJAX Extensions

测试环境:Windows Server 2003-sp1; IIS 6.0;

在本地我们调试运行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 1.0无法自动添加关键dll文件到bin目录。因此需要我们手动添加。方法很简单,找到你安装AJAX.NET 1.0的目录,一般是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文件的异常信息而定。