locked
C# Interop.Excel || The remote procedure call failed. (Exception from HRESULT: 0x800706BE) RRS feed

  • Question

  • C# Interop.Excel || The remote procedure call failed. (Exception from HRESULT: 0x800706BE)

    How to resolve this exception.

    Regards,

    Kiran R L


    R L Kiran

    Thursday, July 25, 2019 11:12 AM

All replies

  • Hello Kiran,

    Be aware, 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.

    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. 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. 

    If you deal with open XML documents only, consider using the Open XML SDK, see Welcome to the Open XML SDK 2.5 for Office for more information.  

    Also see How to troubleshoot crashing and not responding issues with Excel .



    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Thursday, July 25, 2019 1:39 PM