为什么是“本地发布"?默认情况下允许进程外服务器但“本地激活"不是? [英] Why is "local launch" allowed for out-proc servers by default but "local activation" is not?

查看:26
本文介绍了为什么是“本地发布"?默认情况下允许进程外服务器但“本地激活"不是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前需要创建一个 COM 对象,该对象由 ASP.NET 处理程序内部的进程外 COM 服务器提供服务.因此,每次部署 COM 服务器时,我都必须启动 DCOM 配置并更改安全设置.具体来说,我需要确保本地用户 ASPNET 允许本地启动"和本地激活".

I currently need to create a COM object that is served by an out-proc COM server from inside an ASP.NET handler. So every time I deploy the COM server I have to fire up DCOM Config and change the security settings. Specifically I need to ensure that both "local launch" and "local activation" is allowed fro the local user ASPNET.

令我惊讶的是,当我打开相关设置页面时,已经允许本地启动"但不允许本地激活".

What surprises me is that when I open the relevant settings page "local launch" is already allowed but "local activation" is not allowed.

这没有意义 - 为什么我需要这样的权限组合?

That doesn't make sense - why would I need such combination of permissions?

推荐答案

我猜这是因为这是您的默认设置.就我而言,这是不正常的,所以我不知道它是怎么搞砸的.

I'm going to guess it's because that's what your default is set to. It's not normal as far as I'm concerned so I don't know how it got messed up.

您可以通过查看COM 安全"选项卡下我的电脑"的属性来设置 dcomcnfg 中的默认权限.我想您会在编辑默认值"下找到您的 COM 服务器用户的默认权限,用于启动和激活权限没有检查本地激活.

You can set the default permissions in dcomcnfg by looking at the properties of "my computer" under the COM Security tab. I think you'll find your COM server's user's default permissions under "Edit Defaults" for Launch and Activation Permissions doesn't have local activation checked.

这篇关于为什么是“本地发布"?默认情况下允许进程外服务器但“本地激活"不是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆