解决Asp程序的Server.CreateObject错误
2006-12-14 10:40
232 查看
由于以前一直没用过XP系统(还是在大学那会xp刚出来的时候用过,以后就一直没用过xp,当时不喜欢它花里胡哨的界面,呵呵。),没碰到过这样的问题,今天在帮一个网友mm解决excel导入到sqlserver数据库中遇到这样的问题,asp代码里无权限创建excel对象(偶的是XP Professional 英文版),大概是xp默认权限限制的问题,于是到百度里搜索了一下,找到了解决办法如下:
很多使用 IIS 架站的人 经常碰到类似的问题。
在Asp程序CreateObject的时候发生错误,大致内容为Server 对象 错误 'ASP 0178 : 80070005' ,这一般发生在较高版本的IIS或者Windows平台上.
如果你使用的是中文版,错误信息如下:
程序代码:
Server 对象 错误 'ASP 0178 : 80070005'
Server.CreateObject 访问错误
../config/coon.asp,行 5
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
如果是英文版,错误信息如下:
程序代码:
Error Type:
Server object, asp 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
../config/coon.asp, line 5
解决方法:
1. 调用"server.createObject("mssearch.application")"的时候发生错误,解决如下:
开始->运行->dcomcnfg
找到"mssearch"(这个名称取决于你调用的Object是什么),然后右键->Properties->security把三个权限都给everyone即可,其实第一个即可.
2. 出现上述问题时,原因确实是权限的问题。
一种解决办法是修改IIS的匿名访问的权限。
第二种最简单的办法就是将你的组件换个地方注册,特别是不要放到桌面或C盘的(系统盘)的某些特殊目录下注册;而应该放到如D,E等盘。原因是因为通常你的IIS所使用的帐号都是系统权限较低的帐号,如果你是以自己的帐号登录,那么桌面的访问的权限可能比IIS的帐号权限高。
3. 查了MS的资料库,解决的方法如下:
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 Access Error
../config/coon.asp, line 5
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
CAUSE
This behavior can occur 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.
很多使用 IIS 架站的人 经常碰到类似的问题。
在Asp程序CreateObject的时候发生错误,大致内容为Server 对象 错误 'ASP 0178 : 80070005' ,这一般发生在较高版本的IIS或者Windows平台上.
如果你使用的是中文版,错误信息如下:
程序代码:
Server 对象 错误 'ASP 0178 : 80070005'
Server.CreateObject 访问错误
../config/coon.asp,行 5
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
如果是英文版,错误信息如下:
程序代码:
Error Type:
Server object, asp 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
../config/coon.asp, line 5
解决方法:
1. 调用"server.createObject("mssearch.application")"的时候发生错误,解决如下:
开始->运行->dcomcnfg
找到"mssearch"(这个名称取决于你调用的Object是什么),然后右键->Properties->security把三个权限都给everyone即可,其实第一个即可.
2. 出现上述问题时,原因确实是权限的问题。
一种解决办法是修改IIS的匿名访问的权限。
第二种最简单的办法就是将你的组件换个地方注册,特别是不要放到桌面或C盘的(系统盘)的某些特殊目录下注册;而应该放到如D,E等盘。原因是因为通常你的IIS所使用的帐号都是系统权限较低的帐号,如果你是以自己的帐号登录,那么桌面的访问的权限可能比IIS的帐号权限高。
3. 查了MS的资料库,解决的方法如下:
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 Access Error
../config/coon.asp, line 5
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
CAUSE
This behavior can occur 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.
相关文章推荐
- 关于 Asp 程序的 Server.CreateObject 错误解决方法
- 关于Asp程序的Server.CreateObject错误解决方法
- 关于Asp程序的Server.CreateObject错误解决方法
- 关于Asp程序的Server.CreateObject错误解决方法
- 关于asp程序的Server.CreateObject错误解决方法
- 关于Asp程序的Server.CreateObject错误解决方法
- Asp程序的Server.CreateObject错误的解决
- 在windows2003server上运行asp程序,发生验证码看不到,文件找不到等错误的解决办法
- 解决Windows server 2012 R2 系统使用IIS8浏览Asp程序出现"An error occurred on the server when processing the URL"错误
- 500错误解决 调试ASP程序错误An error occurred on the server when processing the URL
- IIS7.0 调试ASP程序时候,程序有错误只提示"An error occurred on the server when processing the URL.Please contact the system administrator",看不到详细的提示的解决办法
- 创建ASP.NET程序时候发生错误"HTTP/1.0 500 Server Error"的一个解决办法
- 创建ASP.NET程序时候发生错误"HTTP/1.0500ServerError"的一个解决办法
- HTTP 错误 500.21 - Internal Server Error 处理程序“ExtensionlessUrlHandler-ISAPI-4.0_64bit”在其模块列表中有一个错误模块“IsapiModule” 解决方法
- asp.net 发布到IIS中出现”处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”“错误的解决方法
- MVC5程序发布在Server 2008 IIS 上,出现404.13错误 的解决方法
- asp.net程序编译调试时偶尔出现访问被拒绝的错误的解决方法
- iis出现 Server Application Error 错误解决方法(xp iis5.1 配置asp项目出现500错)
- Active Server Pages 错误 ASP 0201 的最终解决办法
- IIs 中运行asp程序出现“An error occurred on the server when processing the URL. Please contact the system administrator.”错误