Microsoft.Office.Interop.Excel error: 80070005

 

错误:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.安全

->"开始" -> "运行"中输入DCOMCNFG spa

->"组件服务"->"计算机"->"个人电脑"->"DCOM配置"component

-> 找到"Microsoft Excel 应用程序" -> 右键->"属性", 弹出"Microsoft Excel 应用程序属性"对话框blog

->"安全"标签 -> 在"启动和激活权限"上点击"自定义",it

->填加"NETWORK SERVICE" (或者ASPNET) (注意要选择本计算机名),class

->添加"本地启动"和"本地激活"权限.配置

相关文章
相关标签/搜索