Windows Azure - RPC Server is unavailable error

1

We are working on the Windows Azure platform. The application is working fine if we work from Visual Studio but when we deploy it to Windows Azure and tried to Run from the URL created its throwing RPC Server Unavailable. If Anyone of you people facing the same issues kindly helps us in resolving the same.

http://sharum1016854.cloudapp.net/WelcomePage.aspx --> Please click on any button then the following error is throwing.

the error we are getting is:

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x800706ba): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)]
LastTest.WelcomePage.btnCreate_Click(Object sender, EventArgs e) in D:\AzureApplication\LastTest\WelcomePage.aspx.cs:35
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707

Please give some suggestions regarding the same as soon as possible...

asp.net
windows
azure
cloud
asked on Stack Overflow May 25, 2012 by Sandhya Akkasali • edited Mar 5, 2020 by Hadi

2 Answers

1

The most likely reason is that your code uses an out-proc COM server that you deploy on the same machine during role startup. Later you instantiate an object in that server and COM subsystem provides you with a proxy object. The communication between your code and the COM server is done using RPC - an RPC server is started inside the out-proc COM server. Then the COM server crashes and all you have is a proxy to a now non-existing COM server (and non-existing RPC server). When you perform any call on the dangling proxy you face this error message - RPC server is unavailable.

You have to find what COM server crashes and why it does so and act accordingly.

answered on Stack Overflow May 28, 2012 by sharptooth
0

I am not very sure where the issue is encountered. But according to http://social.technet.microsoft.com/wiki/contents/articles/4494.troubleshooting-the-rpc-server-is-unavailable.aspx, the issue can occur if a computer name cannot be found. I would like to know whether you are using computer name in your code. By default, a Windows Azure machine is not in your local network, so you cannot connect to a local machine using machine name. If you want to invoke an on-premises service, you can use Windows Azure Connect.

Best Regards,

Ming Xu.

answered on Stack Overflow May 25, 2012 by Ming Xu - MSFT

User contributions licensed under CC BY-SA 3.0