检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 8000401a
先用骨哥 狗了一会,没解决方案,又用摆渡,也没找到方法,最后还是看微软的帮助解决了问题:

1.打开DCOM配置,取消交互式用户,使用启动用户

2.安全中附足够权限,不知道用户是谁就写Everyone

http://support.microsoft.com/kb/305761/zh-cn:

COM+ server application that uses interactive user identity fails to load
View products that this article applies to.
< type="text/javascript">function loadTOCNode(){}
Article ID : 305761
Last Review : November 16, 2005
Revision : 3.0

This article was previously published under Q305761
On This Page
SYMPTOMS
CAUSE
RESOLUTION
WORKAROUND
MORE INFORMATION
Steps to reproduce the behavior
REFERENCES
< type="text/javascript"> var sectionFilter = "type != 'notice' && type != 'securedata' && type != 'querywords'"; var tocArrow = "/library/images/support/kbgraphics/public/en-us/downarrow.gif"; var depthLimit = 10; var depth3Limit = 10; var depth4Limit = 5; var depth5Limit = 3; var tocEntryMinimum = 1; < src="/common/script/gsfx/kbtoc.js?9" type="text/javascript">
SYMPTOMS
< type="text/javascript">loadTOCNode(1, 'symptoms');
When no user is interactively logged on to the server console, if you try to start a COM+ application remotely (either through a Terminal Server session or from a remote client application), the application may fail with the following error message:
8000401A - "The server process could not be started because the configured identity is incorrect. Check the username and password."
Back to the top

CAUSE
< type="text/javascript">loadTOCNode(1, 'cause');
This problem occurs because the default identity for the application is set as Interactive User. Interactive user refers to the user that is logged on directly to the server console. If no interactive user exists, the application fails when it tries to assume the interactive user's identity.
Back to the top

RESOLUTION
< type="text/javascript">loadTOCNode(1, 'resolution');
To resolve this problem, change the identity for the server application to run under a particular user. To do this, on the Identity tab of the Application Properties dialog box, click This User. In addition, if it is feasible, you can ensure that a user is interactively logged on to the server console while the application is running.
Back to the top

WORKAROUND
< type="text/javascript">loadTOCNode(1, 'workaround');
In Microsoft Windows Server 2003, work around this problem by using the /Console switch to log on to Console0. To do this, follow these steps: 1. Click Start, click Run, type mstsc /console, and then click OK. 
2. Log on to the computer.

Back to the top

MORE INFORMATION
< type="text/javascript">loadTOCNode(1, 'moreinformation');
Steps to reproduce the behavior
< type="text/javascript">loadTOCNode(2, 'moreinformation'); 1. Create a new, empty COM+ Server application. Accept the default settings.
2. Add any component to the application. The component must not already be in another COM+ application.
3. Try to start the application remotely when no user is interactively logged on to the server console.

Back to the top

REFERENCES
< type="text/javascript">loadTOCNode(1, 'references');
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
276407 (http://support.microsoft.com/kb/276407/) Rights and permissions needed by the Identity account of an MTS/COM+ package
282073 (http://support.microsoft.com/kb/282073/) ASP application fails if no user is logged on to the server
312497 (http://support.microsoft.com/kb/312497/) COM+ application under domain account fails intermittently
Back to the top

--------------------------------------------------------------------------------

APPLIES TO
• Microsoft COM+ 1.0
• Microsoft COM+ 1.5
• Microsoft Transaction Services 2.0

Back to the top

Keywords:  kbprb KB305761

Back to the top

转载于:https://www.cnblogs.com/Sue_/articles/1779422.html

EXCEL 出错 8000401a相关推荐

  1. php导出excel失败原因,PHPExcel中导出Excel出错的一种可能原因

    PHPExcel是PHP中功能最强大的导入.导出.操作Microsoft Excel的开源项目. 虽然,目前有很多方法能够在PHP页面上导出csv文件,但是经过测试发现使用通常方式在PHP中导出的Ex ...

  2. Excel 导出8000401a 错误及解决办法

    在导出excel报表时遇到这样一个问题: 在本地直接运行一切正常: 把代码部署到服务器上,再次导出的时候,导出的excel文档字节数为0且不能打开,打开时报以下错误: 查看进程,excel进程没能正常 ...

  3. 关于向SQL Server导入Excel出错的统一解决方法

    导入前请先关闭本地文件,解除占用. 凡是提示报错中带有"截断"等字样,注意看一下里面提示的列是哪个.比如F4是第四列,点击back回到编辑映射那里,点预览看一下格式是否不匹配. 这 ...

  4. C#操作Excel文件暨C#实现在Excel中将连续多列相同数据项合并

    C#操作Excel文件(读取Excel,写入Excel) 看到论坛里面不断有人提问关于读取excel和导入excel的相关问题.闲暇时间将我所知道的对excel的操作加以总结,现在共享大家,希望给大家 ...

  5. C# 将内存中的datatable数据导出为Excel(方法二,创建Excel对象导出)

    上次写了一个用文件流方式将Datatable导出Excel的方法,这个方法有局限性,比如没法对Excel进行一些增加列颜色等简单的操作,现在,给大家介绍另外一种方法,用微软的Excel类.既然要用到类 ...

  6. 文件流——Excel文件数据读写

    (1)连接字符串 Excel97-2003: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Exten ...

  7. android excel 筛选功能,Android 实现 Excel 解析 xls 和 xlsx,方法也可以很简单

    Excel 解析,一般来说是在服务端进行的,但是如果移动端要实现解析Excel的功能,那也是有实现的方法的. 不过由于Android 原生用Java/Kotlin实现,所以也可以参考服务端解析Exce ...

  8. C#操作Excel文件(读取Excel,写入Excel)

    看到论坛里面不断有人提问关于读取excel和导入excel的相关问题.闲暇时间将我所知道的对excel的操作加以总结,现在共享大家,希望给大家能够给大家带了一定的帮助. 另外我们还要注意一些简单的问题 ...

  9. java ole excel_用OLE操作Excel

    ExcelApp . PG( " workbooks " ) . FN( " Add " , " C:\\Temp\\result.xlt " ...

  10. QAxObject保存Excel表格

    QAxObject新建并保存Excel表格 C++中有三种常用的操作Excel的方式,Xlnt.QtXlsx以及QAxObject 本文使用QAxObject来新建并保存Excel表格 1:初始化Ex ...

最新文章

  1. 我的第一份工作是个小公司
  2. 开源加持 NFV借势OPNFV实现进阶之路
  3. 基于springboot实现高校学生健康档案管理系统
  4. 平面电子地图如何表现同一位置的POI
  5. 资源收集流程为SDN控制器
  6. 【hdu 1573 X问题】【 hdu3579 Hello Kiki 】【poj 2891】
  7. html5发展前景-兄弟连,IT兄弟连 HTML5教程 HTML5的曲折发展过程 HTML5的诞生
  8. golang并发官方示例
  9. 一建机电实务教材电子版_2020一建教材+章节习题+新旧教材对比【全科】免费送...
  10. oracle 11g 存储结构和数据文件
  11. JAVA面试要点009---TimeUnit用法
  12. 剑指Offer之包含min函数的栈
  13. deepl pro 2.0.0专业版
  14. 深度学习NLP-词向量篇(含代码实现)
  15. golang批量修改文件名称
  16. 波束成形技术原理解析
  17. Spring Security技术栈学习笔记(十)开发记住我功能
  18. java文件服务,苹果相关浏览器文件名乱码而其他例如谷歌浏览器不乱码
  19. pi/4dqpsk的matlab及FPGA仿真
  20. 互联网人养娃 真就和别人不一样

热门文章

  1. roboto字体android,Android字体设置及Roboto字体使用方法
  2. 英语音标和Unicode
  3. 【笔记分享】LED点阵屏幕显示原理
  4. 一级造价工程师(安装)- 计量笔记
  5. 黑苹果安装教程,配EFI引导文件+软件!
  6. 调用网易云api接口
  7. 大漠插件最新版dm7.2135
  8. 树莓派学习2-连接蓝牙音箱进行语音播放
  9. AMESim软件包 百度云下载
  10. mssql数据库置疑修复