“无效参数错误。”是什么意思? 0x80030057(STG_E_INVALIDPARAMETER)”通常是什么意思?
我遇到了 COM 错误:
参数无效错误。 HRESULT 0x80030057(STG_E_INVALIDPARAMETER)
在处理名为 Aspose 的 Excel 互操作组件时,无法弄清楚打开 Excel 文件时出现此错误的原因。我也无法在 Stack Overflow 上找到任何内容,因此必须询问:
某些黑盒 COM 组件导致此错误(在任何打印形式中)的最常见原因是什么?
当允许时,我也会发布导致我的错误的原因!
I came across the COM error:
Invalid parameter error. HRESULT 0x80030057 (STG_E_INVALIDPARAMETER)
when dealing with an Excel interop component called Aspose and couldn't figure out why this error when opening an Excel file. Nor could I find anything here on Stack Overflow so it MUST be asked:
What is the most common cause of this error (in any printed representation) from some black-box COM component?
I will also post what caused my error when SO allows me to!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就我而言,原因是我将与包装的 COM 组件 (Aspose Excel 2.9.2) 交互的 C#.NET 应用程序定位为在“任何 CPU”平台上运行。这并不好,因为 DLL 是仅为 32 位平台显式编译的。因此,我的 C#.NET 应用程序必须明确以“x86”为目标平台。
我不确定这是否是最常见的,但对于该错误消息来说,这是一个非常模糊的问题。
In my case the cause was that I had targeted my C#.NET app that was interacting with a wrapped COM component (Aspose Excel 2.9.2) to run on "any CPU" platform. This is no good as the DLL was compiled explicitly for 32-bit platforms only. So my C#.NET app had to be platform targeted explicitly to "x86".
I'm not sure if this would be the most common though, but it's a pretty well obscured problem for that error message.
Aspose 文件格式产品不是 COM 组件。它们是完全托管的 .NET 程序集。您能分享一下哪个组件导致了这个问题吗?另外,请分享您正在使用的组件的版本号。我还想告诉大家的是,所有 Aspose 组件都可以在 32 位和 64 位系统上无缝运行。此外,它们不需要在您的开发或部署计算机上安装 MS Office。而且,它们不使用 COM 互操作。
请分享有关您的问题的更多详细信息。您还可以在我们的支持论坛中发布您的查询以及所有详细信息,以便我们的团队能够详细调查您的问题。
披露:我在 Aspose 担任开发人员传播者。
Aspose file format products are not COM components. They're fully managed .NET assemblies. Could you please share which component caused this problem. Also, share the version number of the component you're using. I would also like to share that all the Aspose components work on 32-bit and 64-bit systems seamlessly. Also, they do not require MS Office to be installed on your development or deployment machines. Moreover, they do not use COM interop.
Please share some more details regarding your issue. You can also post your query along with all the details in our support forums, so that our team would be able to investigate your issue in detail.
Disclosure: I work as a developer evangelist at Aspose.