我需要从 Windows Azure 应用程序中的辅助角色和 Web 角色使用进程外 COM 服务器。我几乎确定我需要做的一步是 to alter the access permissions for the COM server - 为角色代码执行的预定义用户授予“本地启动”和“本地激活”权限。
到目前为止我发现有 DCOMPERM Windows SDK 示例中的实用程序包含我猜可以做到这一点的代码。因此,我可以编写类似的代码并将其打包到单独的可执行文件中或打包到 COM 服务器和 run that code from a role start-up task 的 COM 注册代码中。 。这并非微不足道,但肯定是可行的。
在开始之前我只有一个主要关心的问题。
有什么原因导致我不能这样做吗?也许 Windows Azure 或其他平台上不允许使用进程外 COM 服务器?有这样的限制吗?
最佳答案
Are there any reasons why I can't do that? Maybe using out-proc COM servers is not allowed on Windows Azure or something? Are there any such limitations?
这不是我亲自做过的事情,但如果您可以安装在 shell exe 中运行的 COM+ 服务器,那么我认为您应该能够做您想做的事情 - 请参阅最近的博客文章 http://michaelwasham.com/2011/05/15/deploying-a-com-servicedcomponent-to-windows-azure/
我认为您不会遇到限制 - 但我认为您在此过程中会遇到一些问题 - 祝您好运。
关于windows - 是否可以在 Windows Azure 上部署进程外 COM 服务器并更改其激活权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6153985/