Excel错误 - GoDaddy上的Com注册表错误 [英] Excel Error - Com registry error on GoDaddy

查看:72
本文介绍了Excel错误 - GoDaddy上的Com注册表错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





尝试阅读Excel文件时GoDaddy服务器出现错误。



由于以下错误,检索CLSID为{00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154未注册类(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))。



当我们通过网络上传已发布的副本时,我们如何处理这个问题。我们无法访问网络服务器。



问候,

Arvind

Hi,

Facing error on GoDaddy server when trying to read an Excel file.

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

How do we handle this when we upload a published copy over the net where we dont have access to web server.

Regards,
Arvind

推荐答案

您的服务器上没有安装Excel。



另外,不支持使用来自非交互式应用程序(例如:网站)的Office自动化:

Excel is not installed on your server.

Additionally, using Office automation from non-interactive applications (eg: websites) is not supported:



Micr osoft目前不推荐,也不支持从任何无人参与的非交互式客户端应用程序或组件(包括ASP,ASP.NET,DCOM和NT服务)自动化Microsoft Office应用程序,因为Office可能表现出不稳定的行为和/或Office在此环境中运行时死锁。


Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.





您需要使用其他方法来阅读文件。



你可能能够使用ODBC:

使用ODBC读取Excel文件 [ ^ ]



如果您的网站只需要支持更新的文件格式( .xlsx ),然后您可以使用 EPPlus [ ^ ], ClosedXML [ ^ ]或 OpenXML SDK [ ^ ]。



如果您需要支持较旧的格式文件(的.xls ),然后你可以使用 NPOI [ ^ ]。



You'll need to use a different approach to read the files.

You might be able to get away with using ODBC:
Reading Excel files using ODBC[^]

If your site only needs to support the newer file formats (.xlsx), then you could use EPPlus[^], ClosedXML[^], or the OpenXML SDK[^].

If you need to support older format files (.xls) as well, then you can use NPOI[^].


这篇关于Excel错误 - GoDaddy上的Com注册表错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆