使用IIS服务器访问excel文件时如何解决此错误?使用Microsoft Office.Interop.Excel [英] how to resolve this error while accessing excel file with IIS Server? using Microsoft Office.Interop.Excel
本文介绍了使用IIS服务器访问excel文件时如何解决此错误?使用Microsoft Office.Interop.Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用IIS服务器访问excel文件时解决此错误?
应用程序ID:Exception {为具有CLSID {00024500-0000-0000-C000-000000000046}的组件检索COM类工厂而失败,由于以下错误:80070005.}
how to resolve this error while accessing excel file with IIS Server?
Application Id:Exception{Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.}
推荐答案
答案此处 [ ^ ]可能会帮助
首先,您必须授予Excel应用程序的权限.....
在Dcom Config中.....
http://social.msdn.microsoft.com /Forums/zh-CN/Vsexpressvb/thread/b6388275-b295-4e55-8c25-6d8788eac1ca/ [
First of all you have to give Permission for Your Excel Application.....
in Dcom Config.....
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b6388275-b295-4e55-8c25-6d8788eac1ca/[^]
Here They have Explained Every thing about Permissions...
In IIS Default Application pool You Have to set Identity into network Service
这篇关于使用IIS服务器访问excel文件时如何解决此错误?使用Microsoft Office.Interop.Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文