本文介绍了Windows Azure-RPC服务器不可用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在Windows Azure平台上工作。如果我们在Visual Studio上工作,则该应用程序运行良好,但是当将其部署到Windows Azure并尝试从URL运行时,创建的抛出RPC服务器不可用。如果遇到相同问题的任何人都可以帮助我们解决相同问题。

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.

我们得到的错误是:

异常详细信息:System.Runtime.InteropServices.COMException:
RPC服务器不可用。 (来自HRESULT的异常:0x800706BA)

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

源错误:

堆栈跟踪:

请尽快就此提出一些建议...

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

推荐答案

最可能的原因是您的代码使用角色启动期间部署在同一台计算机上的外向COM服务器。稍后,您在该服务器中实例化一个对象,COM子系统为您提供代理对象。您的代码与COM服务器之间的通信是使用RPC完成的-RPC服务器是在外向COM服务器内部启动的。然后,COM服务器崩溃,您所拥有的只是一个现在不存在的COM服务器(和不存在的RPC服务器)的代理。当您在悬空代理上执行任何呼叫时,都会遇到此错误消息- RPC服务器不可用

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.

您必须查找导致COM服务器崩溃的原因以及为什么这样做并采取相应行动。

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

这篇关于Windows Azure-RPC服务器不可用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 15:54
查看更多