在把ASP应用程序从 Windows 2000 Server 转移到 Windows Server 2003 以后,运行程序到创建数据库连接对象的时候出现这样的错误:
![引用内容](http://www.ziyuehome.com/images/quote.gif)
Server 对象 错误 'ASP 0178 : 80070005'
Server.CreateObject 访问错误
/conn.asp,行 9
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
Server.CreateObject 访问错误
/conn.asp,行 9
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
如果是英文的话,可能是这样提示的:
![引用内容](http://www.ziyuehome.com/images/quote.gif)
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
/conn.asp, line 99
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
Server.CreateObject Access Error
/conn.asp, line 99
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
竟然连创建数据库连接对象都不行,“看来Server 2003是够安全的(网友语)”。
最后在微软的知识库里面搜索了一下找到一篇,他说设置一下%ProgramFiles%/Common Files/System的权限:
![引用内容](http://www.ziyuehome.com/images/quote.gif)
Add Everyone to the existing permissions, give at least Read permissions to Everyone, and apply these new settings to all files and subfolders.
我按他的方法增加了Everyone可以读的权限,但是依然不行。
最后,我给Everyone赋予可以修改的权限,最后错误消失了,ASP可以顺利运行,呵呵,我又看到了久违的熟悉的页面。
[UP:2006-12-10]自己创建的组件也可能出现这样的错误,但是原因不一定是这样,没有深究,如果您遇到问题,到http://wwwf.cn/article.asp?id=500看看,能不能解决。
http://www.ziyuehome.com/trackback.asp?tbID=61&action=addtb&tbKey=9f07df47c0b6d431c213eafcd5957898e11cc80a