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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
Recent Announcements
Recent Announcements
L
LangChain Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
D
Docker
WordPress大学
WordPress大学
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
博客园 - Franky

博客园 - hnboy

查找相同的数据 管理sql2005出现“无法连接WMI……” word居中的一个小问题 造成Word文档体积大的四个主要原因【转】 页眉随着章节变 visio 打印乱码问题 - hnboy - 博客园 GridView中的超级链接 - hnboy - 博客园 C#中字符串操作函数(转载) php字符串处理函数讲解 【转】ghostxp修改方法 Visio虚线复制到word中变为实线问题的解决办法 访问IIS元数据库失败的解决 C#与Matlab混合编程 转自【挥剑斩浮云】破解 w3wp.exe的内存及CPU占用不能及时释放 文件属性变成灰色无法修改解除 解决使用ping命令PC喇叭响一声的问题 XP安全选项卡 Windows 2003 服务器权限设置
关于 Asp 程序的 Server.CreateObject 错误解决方法
hnboy · 2007-09-15 · via 博客园 - hnboy

A:由于以前一直没用过XP系统,没碰到过这样的问题,今天在帮一个网友解决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.