对联 ·故事 ·史海钩沉 ·人物档案 ·地方风俗 ·谚语大全 ·讽刺与幽默 · 赚钱 · 法律 · 在线教研 · 会员中心 · 心理测试 · 魔鬼词典 · 顺口溜
 
主页特效 网页特效 百家姓
娱乐 歇后语 绕口令 脑筋急转弯
 
谚语 谜语 名言 邮政编码
便民 酒方 验方 偏方 站长工具  
 
算命 风俗 手相 爱情
女孩 音乐 面相 星座 血型
 
饮食 穴道 偏方 医药
生活 软件 硬件 解梦 高考



   JS特效



实用工具
便民服务 加密解密
 
魅力高密 民间故事 Flash教程 PS教程 最新国内新闻
新华字典 黄道吉日 英语园地  万年历 Html2anycode
  首页 | 美图 | 短信 | 安全 | 校园 | 网站 | 游戏 | UFO | 文秘 | 生活 | 信息技术 | 论文 | 人生 | 情感 | 日记
返回首页
当前位置: 主页 > 网站建设 >

Provider error '80004005' Unspecified error 错误的解决方(3)

时间:2009-12-29 00:05来源:未知 作者:牛云凯 点击:
If TMP/TEMP is defined but points to a nonexistent folder, the error occurs. Moreover, when opening the Access database through IIS or a Windows NT service, and when IIS or the service is running unde
  

 

If TMP/TEMP is defined but points to a nonexistent folder, the error occurs.

Moreover, when opening the Access database through IIS or a Windows NT service, and when IIS or the service is running under the local system account, the TMP or TEMP system environment variable is used. When the Web services or Windows NT service are started using a user account, the TMP/TEMP user profile environment variables is used.
RESOLUTION
Define a TMP or TEMP environment variable and assign the variable to an existing folder. If you are accessing the Access database from IIS, be certain to check the system environment settings rather than environment variables of the logged-on user. Also ensure that the IUSER anonymous IIS account has access to the temporary folder.

You must restart the computer after changing any environment variables.
Environment variables are set under Windows NT 4.0 by going to the Control Panel and clicking System and then selecting the Environment tab.

然而我不解的是,为什么在前几个星期的测试中没有这个问题,而在最近几天,出现的越来越频繁呢?
在网上找了几篇相关的文章(有好多论坛上的帖子也有讨论这个问题的,但我没能找到解决答案):

http://www.issociate.de/board/post/276824/ASP_Error_0x80004005_Unspecified_Error.html
http://www.sitepoint.com/forums/showthread.php?t=213666
http://support.microsoft.com/default.aspx?scid=kb;en-us;825738

思考几小时间后,我想会不会是不能建立临时文件的原因呢?
其实只要能让错误在我自己的电脑上出现,那我就好办了,但问题是,只是偶而出现在我的电脑上,而且很快就好了,从头到尾都只出现过两三次。
但在服务器上却出现问题越来越多了,几分钟就不行了。

根据前面的一些文章来分析,我决定做以下一个测试:

1、删除IIS在Windows下的帐号(Internet Guest Account)的文件写权限,当然,只对项目的目录。
2、同时也删除它在临时目录(C:\Documents and Settings\WEBB-COUNTRY-WU\ASPNET\Local Settings\Temp,不的机器所有不同)的写权限。

好了,终于在我的电脑上也出现了同样的错误,而且所有的与数据库相关的页面都不能访问。而且根据MSDN里的说明,这是因为没有权限在临时目录里写文件而产生的,与之相同。

然而,问题又在于,服务器上的并不是一直错误,而是一时错误一时正常。

唯一可以解释的就是服务器临时文件满了!!!!而这又不好证明,我不可能一直测试,让我的临时文件也满了(就算是COPY文件到临时目录里,也不能算是 IIS帐号的,而是操作者的),而且临时文件它自己(OLEDB的链接线程)也会删除的。只好另外想办法,就是用磁盘配额。给IIS帐号:Internet Guest Account在C盘只有10K的写权限,然后测试,果然问题如期而致。。。。。。

到此,可以肯定:服务器上的临时文件太多了,看来是要重新启动一下服务器,或者要清理临时文件或者调整磁盘空间了。。。。。。

唉,还害的我白白加一天班,。。。。。


希望这篇文章能帮助那些还没有解决问题的人。

同时,MS网站及MSDN上的几篇文章也都还很有帮助意义的,特别是说明的其它几个错误原因,虽然我还没有遇到,但已经知道如果遇到会怎么办。

 

 

顶一下
(1)
100%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
赞助商位置
推荐内容
杂七杂八