Excel错误

编程入门 行业动态 更新时间:2024-10-13 16:16:09
本文介绍了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: support.microsoft/kb/257757 [ ^ ]

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错误

本文发布于:2023-11-02 03:52:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551292.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Excel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!