The rpc server is unavailable (exception from hresult : 0X800706BA)

3

My application scan through the excel files and generate a report having count of Activex controls in each excel file. But while running the tool from client machine we are getting an error on opening the file (for some file not all) and the files are located in the sever side, as follows:

"the rpc server is unavailable (exception from hresult : 0X800706BA)"

Can you please guide me why this happens....

Thank you.

vb.net
excel
asked on Stack Overflow Apr 6, 2009 by Suman • edited Apr 17, 2009 by grieve

4 Answers

3

This usually occurs because the server you are communicating with has crashed.

answered on Stack Overflow Apr 6, 2009 by 1800 INFORMATION
2

When you first launch Excel programmatically, it connects to Excel via an RPC server. When you close the document, this server gets closed without your application knowing about it.

The solution is to trap an error and re-initialise your Excel object. you will then be able to continue.

answered on Stack Overflow Apr 25, 2016 by Jad • edited Apr 25, 2016 by Jad
0

its seems to be an well known error s. Microsoft Support

answered on Stack Overflow Nov 12, 2012 by MikroDel
0

I had the same and exact problem and upon searching online, nothing works. So I tried one of the comments to open and close Excel both local and server and it works!

If you have the same problem, try to open Excel or the Excel file you are using and close it.

Then try to run your application again.

answered on Stack Overflow Jun 13, 2017 by Willy David Jr

User contributions licensed under CC BY-SA 3.0