zoukankan      html  css  js  c++  java
  • CLSID {91493441-5A91-11CF-8700-00AA0060263B}错误

    最近遇到一个棘手的问题,在C#中处理PPT转HTML的过程中需要用到COM组件,按照往常的设置如下:

    1. Start->Run->DCOMCNFG->Component Services->Computers->My Computer->DCOM Config-》Microsoft PowerPoint 投影片

    之后

    单击属性打开此应用程序的属性对话框。

    2. 单击标识选项卡,然后选择交互式用户。

    3.单击"安全"选项卡,分别在"启动和激活权限"和"访问权限"组中选中"自定义",然后

    自定义->编辑->添加Everyone、Network Service账户和IUSER_计算机名

    4. 确保允许每个用户访问,然后单击确定。

    5. 单击确定关闭 DCOMCNFG。

    设置完之后错误还是存在,服务器的操作系统是windows server 2008 r2,所以在用户中没有找到ASPNET账户,以前只要添加ASPNET和Everyone的账户权限就会OK的,现在不行。

    重新安装VS2005和Office(2003和2007)好几次,都还是解决不了。

    最后再试着卸载Office,然后到注册表中有关Office的东西全部删除掉之后,再重新安装Office2007,问题陆续如下,以及针对这些问题陆续解决之后,最初的问题竟然解决了,呵呵。

    Q:System.Runtime.InteropServices.COMException: PowerPoint could not open the file.
    A:on Windows Server 2008 you need to create the following directories to get this to work:

    Windows 2008 Server x64: C:WindowsSysWOW64configsystemprofileDesktop Windows 2008

    Server x86: C:WindowsSystem32configsystemprofileDesktop

    Q:如果修改Dcom Config下的Microsoft PowerPoint 幻灯片-->Identity,问题又会出现如Acces is

    Denied。或者是PowerPoint could not open the file.
    A:解决办法可以重启机器试试。

    Q:Win32Exception (0x80004005): Access is denied Error.
    A: set the Impersonation right in the webconfig.


    Q:Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-

    00AA0060263B} failed due to the following error: 80080005、error: 80004023、error:

    80040154.
    A: Use the impersonation feature in the Web.config file

    You can set fixed identities that have access to the remote security-enhanced resource for

    specific virtual directories by using the following setting in the Web.config file for

    your application.

           <identity impersonate="true"  userName="" password="" />




  • 相关阅读:
    HTML 文本格式化实例
    HTML 文本格式化实例--预格式文本+“计算机输出”标签
    HTML 文本格式化实例--文本格式化
    如何用通俗易懂的语言解释脚本(script)是什么?
    1. HTML 基础标签
    java 和 python的一些对比
    XML fragments parsed from previous mappers does not contain value for com.miniprogram.meirong.comment.dao.CommentMapper.Base_Column_List
    The request was rejected because the URL was not normalized.
    fastjson的简单使用
    微信小程序的分页
  • 原文地址:https://www.cnblogs.com/yumianhu/p/3710733.html
Copyright © 2011-2022 走看看