简体   繁体   English

NetOffice获得80080005服务器执行失败

[英]NetOffice getting 80080005 Server execution failed

I'm trying to edit a Word document programmatically. 我正在尝试以编程方式编辑Word文档。 However, when I debug and first try to create the Word.Application, I get 但是,当我调试并首次尝试创建Word.Application时,我得到了

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). 由于以下错误,检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80080005服务器执行失败(HRESULT异常:0x80080005(CO_E_SERVER_EXEC_FAILURE))。

I see that Word.Interop isn't supported anymore, so I started using NetOffice, but nothing changed, so perhaps I'm not altering the underlying functionality. 我看到不再支持Word.Interop,因此我开始使用NetOffice,但是没有任何变化,因此也许我没有更改底层功能。

I have tried many DCOM configurations and am running my Visual Studio instance as Administrator, but nothing changes. 我尝试了许多DCOM配置,并以管理员身份运行Visual Studio实例,但没有任何更改。 Currently Authentication Level is None, I specify "This user" and am using an account with all the Security permissions. 当前身份验证级别为无,我指定“此用户”,并且正在使用具有所有安全权限的帐户。 I've also tried the interactive user and the launching user previously. 之前,我还尝试了交互式用户和启动用户。 I've never had trouble with the debugger before, just once it was deployed on the server, so this is confusing to me. 调试器部署到服务器上之后,我再也没有遇到过麻烦,所以这使我感到困惑。

I'm running Windows 8.1 (64-bit) and Office 2013 (32-bit). 我正在运行Windows 8.1(64位)和Office 2013(32位)。 I'd appreciate any ideas. 我将不胜感激。 And does NetOffice matter at all for this problem? NetOffice对这个问题有影响吗? Thank you. 谢谢。

See You may receive an "Error code 80080005 -- server execution failed." 请参阅您可能会收到“错误代码80080005-服务器执行失败。” error message when you start many COM+ applications . 您启动许多COM +应用程序时出现错误消息

Anyway, 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. 无论如何,Microsoft当前不建议并且不支持从任何无人参与的非交互客户端应用程序或组件(包括ASP,ASP.NET,DCOM和NT Services)自动化Microsoft Office应用程序,因为Office可能表现出不稳定的行为和/或当在此环境中运行Office时出现死锁。

If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. 如果要构建在服务器端上下文中运行的解决方案,则应尝试使用对无人值守执行安全的组件。 Or, you should try to find alternatives that allow at least part of the code to run client-side. 或者,您应该尝试找到允许至少部分代码在客户端运行的替代方法。 If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. 如果您从服务器端解决方案中使用Office应用程序,则该应用程序将缺少许多成功运行所需的功能。 Additionally, you will be taking risks with the stability of your overall solution. 此外,您将承担整体解决方案稳定性的风险。 Read more about that in the Considerations for server-side Automation of Office article. 在《 服务器端Office自动化注意事项》一文中了解有关此内容的更多信息。

Consider using Open XML SDK if you deal with open XML documents only, see Welcome to the Open XML SDK 2.5 for Office for more information. 如果仅处理开放XML文档,请考虑使用Open XML SDK ,有关更多信息,请参阅欢迎使用Office Open XML SDK 2.5 Or just try to use any third-party components components designed for the server-side execution. 或者只是尝试使用为服务器端执行而设计的任何第三方组件。

PS NetOffice will not help you to avoid such issues because it is based on the COM Automation technology. PS NetOffice基于COM自动化技术,因此不会帮助您避免此类问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 检索执行的组件的COM类工厂80080005服务器执行失败 - Retrieving the COM class factory for component with execution 80080005 Server execution failed 80080005 使用 Word 自动化时服务器执行失败 - 80080005 Server execution failed when using Word Automation Word 2016自动化生成“错误:80080005服务器执行失败” - Word 2016 automation generates “error: 80080005 Server execution failed” 服务器执行失败(来自 HRESULT 的异常:0x80080005 (CO_E_SERVER_EXEC_FAILURE)) - Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) 如何解决异常:“检索 COM class 工厂…失败…80080005 服务器执行失败”来自 Codesoft? - How can I resolve exception: “Retrieving the COM class factory…failed…80080005 Server Execution failed” from Codesoft? 使用NetOffice无法访问服务器上的Word文档,但它可以在本地运行 - Can't access word document on my server with NetOffice, but it works in local SetPlaceholderText NetOffice - SetPlaceholderText NetOffice 检索具有 CLSID {00024500-0000-0000-C000-000000000046} 的组件的 COM 类工厂失败 - 80080005 - Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed - 80080005 如果我使用NetOffice生成Excel文件,是否需要在服务器上安装MS Excel? - Will I require MS Excel installed on the server if I am generating Excel file using NetOffice? C#Outlook由于以下错误而无法为具有CLSID的组件检索COM类工厂:80080005 - C# Outlook Retrieving the COM class factory for component with CLSID failed due to the following error: 80080005
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM