RPC Server is unavailable error

喜欢而已 提交于 2020-03-04 06:28:30

问题


We are working on 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 faced same issues kindly help 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...


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




回答2:


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.



来源:https://stackoverflow.com/questions/10749372/rpc-server-is-unavailable-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!