asp提示Server 对象 错误 ASP 0178 : 80070005
网络编程 2021-07-05 10:58www.168986.cn编程入门
今天帮客户配置好服务器以后测试程序发现asp程序提示Server 对象 错误 ASP 0178 : 80070005,经测试是因为权限问题。
尤其是刚安装的那些组件,需要手工设置下权限,因为为了安全考虑,权限限制的很低。大家可以参考狼蚁网站SEO优化的方法设置下。
错误提示:
Server 对象 错误 'ASP 0178 : 80070005'
Server.CreateObject 访问错误
../asp.asp,行 123
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
错误如提示,存在以权限。
解决方法:
1. 调用"server.createObject("mssearch.application")"的时候发生错误,解决如下:
开始->运行->dfg
找到"mssearch"(这个名称取决于你调用的Object是什么),然后右键->Properties->security把三个权限都给everyone即可,其实第一个即可.
2. 出现上述问题时,原因确实是权限的问题。
一种解决办法是修改IIS的匿名访问的权限。
第二种最简单的办法就是将你的组件换个地方注册,特别是不要放到桌面或C盘的(系统盘)的某些特殊目录下注册;而应该放到如D,E等盘。原因是因为通常你的IIS所使用的帐号都是系统权限较低的帐号,如果你是以自己的帐号登录,那么桌面的访问的权限可能比IIS的帐号权限高。
3. 查了MS的资料库,解决的方法如下,fromaspxuexi. asp学习网:
This article was previously published under Q315454
SYMPTOMS
When you attempt to browse to an Active Server Page (ASP) database results page created in Microsoft FrontPage, you may receive an error message similar to the following:
程序代码:
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Aess Error
../config/coon.asp, line 5
The call to Server.CreateObject failed while checking permissions. Aess is denied to this object.
CAUSE
This behavior can our if incorrect NTFS permissions are defined for your "%ProgramFiles%\Common Files\System" folder.
RESOLUTION
To resolve your issue, reset the NTFS permissions on the "%ProgramFiles%\Common Files\System" folder. To do this, follow these steps:
1.. Open Windows Explorer. To do this, right-click Start and then click Explore on the shortcut menu.
2.. In Folders view, expand the "%ProgramFiles%\Common Files\System" folder.
3.. Right-click the folder and click Properties on the shortcut menu.
4.. Click the Security tab.
5.. Add Everyone to the existing permissions, give at least Read permissions to Everyone, and apply these new settings to all files and subfolders.
6.. Click OK.
--------------------------------------------------------------------------------
如果是本机调试:
要解决问题, 重新设置 " %ProgramFiles%\Common Files\System " 文件夹的NTFS 权限。 要这样做, 请按照下列步骤操作:
1. 打开 Windows 资源管理器。
右键单击 开始 , 然后单击快捷菜单上 浏览 。
2. 在 文件夹 视图, 展开 " %ProgramFiles%\Common Files\System " 文件夹。
3. 右击文件夹并单击快捷菜单上 属性 。
4. 单击 安全 选项卡。
5. 至少授予 Everyone 添加现有权限, 读取 权限向 Everyone , 并这些新设置应用于所有文件和子。
6. 单击 确定 。
--------------------------------------------------------------------------------
如果是服务器,给相关的dll进行everyone权限吧。
错误提示:
Server 对象 错误 'ASP 0178 : 80070005'
Server.CreateObject 访问错误
../asp.asp,行 123
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
错误如提示,存在以权限。
解决方法:
1. 调用"server.createObject("mssearch.application")"的时候发生错误,解决如下:
开始->运行->dfg
找到"mssearch"(这个名称取决于你调用的Object是什么),然后右键->Properties->security把三个权限都给everyone即可,其实第一个即可.
2. 出现上述问题时,原因确实是权限的问题。
一种解决办法是修改IIS的匿名访问的权限。
第二种最简单的办法就是将你的组件换个地方注册,特别是不要放到桌面或C盘的(系统盘)的某些特殊目录下注册;而应该放到如D,E等盘。原因是因为通常你的IIS所使用的帐号都是系统权限较低的帐号,如果你是以自己的帐号登录,那么桌面的访问的权限可能比IIS的帐号权限高。
3. 查了MS的资料库,解决的方法如下,fromaspxuexi. asp学习网:
This article was previously published under Q315454
SYMPTOMS
When you attempt to browse to an Active Server Page (ASP) database results page created in Microsoft FrontPage, you may receive an error message similar to the following:
程序代码:
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Aess Error
../config/coon.asp, line 5
The call to Server.CreateObject failed while checking permissions. Aess is denied to this object.
CAUSE
This behavior can our if incorrect NTFS permissions are defined for your "%ProgramFiles%\Common Files\System" folder.
RESOLUTION
To resolve your issue, reset the NTFS permissions on the "%ProgramFiles%\Common Files\System" folder. To do this, follow these steps:
1.. Open Windows Explorer. To do this, right-click Start and then click Explore on the shortcut menu.
2.. In Folders view, expand the "%ProgramFiles%\Common Files\System" folder.
3.. Right-click the folder and click Properties on the shortcut menu.
4.. Click the Security tab.
5.. Add Everyone to the existing permissions, give at least Read permissions to Everyone, and apply these new settings to all files and subfolders.
6.. Click OK.
--------------------------------------------------------------------------------
如果是本机调试:
要解决问题, 重新设置 " %ProgramFiles%\Common Files\System " 文件夹的NTFS 权限。 要这样做, 请按照下列步骤操作:
1. 打开 Windows 资源管理器。
右键单击 开始 , 然后单击快捷菜单上 浏览 。
2. 在 文件夹 视图, 展开 " %ProgramFiles%\Common Files\System " 文件夹。
3. 右击文件夹并单击快捷菜单上 属性 。
4. 单击 安全 选项卡。
5. 至少授予 Everyone 添加现有权限, 读取 权限向 Everyone , 并这些新设置应用于所有文件和子。
6. 单击 确定 。
--------------------------------------------------------------------------------
如果是服务器,给相关的dll进行everyone权限吧。
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程