是否可以在 Windows Azure 上部署进程外 COM 服务器并更改其激活权限?
我需要从 Windows Azure 应用程序中的辅助角色和 Web 角色使用进程外 COM 服务器。我几乎确定需要做的一步是更改 COM 服务器的访问权限 - grant "执行角色代码的预定义用户的“本地启动”和“本地激活”权限。
到目前为止,我发现 Windows SDK 示例中有 DCOMPERM 实用程序,其中包含我认为可以做到这一点的代码。因此,我可以编写类似的代码并将其打包到单独的可执行文件中或打包到 COM 服务器的 COM 注册代码中,然后从角色启动任务。这并非微不足道,但肯定是可行的。
在开始之前我只有一个主要关心的问题。
我有什么理由不能这样做吗?也许 Windows Azure 或其他平台上不允许使用进程外 COM 服务器?有这样的限制吗?
I need to consume an out-proc COM server from both a worker role and a web role in a Windows Azure application. One step I'm almost sure I'll need to do is to alter the access permissions for the COM server - grant "local launch" and "local activation" permissions for the predefined user under which roles code executes.
So far I found there's DCOMPERM utility in Windows SDK samples which contains code that I guess would do that. So I could write similar code and package it into either a separate executable or into the COM registration code of the COM server and run that code from a role start-up task. That's not trivial, but certainly doable.
I only have one major concern before I start.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是我个人做过的事情,但如果您可以安装在 shell exe 中运行的 COM+ 服务器,那么我认为您应该能够做您想做的事情 - 请参阅最近的博客文章 http://michaelwasham.com/2011/05/15/deploying-a-com -servicedcomponent-to-windows-azure/
我认为您不会遇到限制 - 但我认为您在此过程中会遇到一些问题 - 祝你好运。
It's not something I've personally done, but if you can install a COM+ server running in a shell exe, then I think you should be able to do what you want - see this recent blog post http://michaelwasham.com/2011/05/15/deploying-a-com-servicedcomponent-to-windows-azure/
I don't think you will hit limitations - but I think you will hit a fair few problems along the way - good luck.