none
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 exception


    R L Kiran

    Wednesday, July 24, 2019 4:34 PM

All replies

  • Hello,

    Since there are many ways to work with Excel you will need to provide more details and perhaps code. What I will say is if this is running on a server via Excel automation that is not supported. If running from a server it's best to use Open XML for Excel or a library based off Open XML for Excel.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Wednesday, July 24, 2019 4:38 PM
    Moderator
  • HI Karen Payne,

           Thanks for quick reply,

       I try to bind, load excel file in tab control in Winforms , I used Microsoft.Office.Interop.Excel dll .I am running in local system only ,While loading excel, I am facing issue for below exception.

    Exception : The remote procedure call failed. (Exception from HRESULT: 0x800706BE)



    R L Kiran

    Wednesday, July 24, 2019 4:46 PM
  • Sorry for the late reply, did you add the reference for Excel from Assemblies browse OR COM? If from COM try from Assemblies.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Wednesday, July 24, 2019 6:00 PM
    Moderator
  • Hi Kiran Reddi,

    Thank you for posting here.

    Based on my search, you could read the second reply in the following link to try to to solve this exception.

    https://superuser.com/questions/1124945/excel-interop-remote-procedure-call-failed-or-rpc-e-serverfault?answertab=active#tab-top

    Note:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, July 25, 2019 2:11 AM
    Moderator