实例化COM +代理时出错 [英] Error instantiating a COM+ proxy

查看:86
本文介绍了实例化COM +代理时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个双层系统。


我在数据层(Win2003)上创建了一个COM +包并将其导出为

COM +代理(符合1.0版本)并将其安装到Win2000 Web

应用程序上。


我创建了一个我运行的简单VB6应用程序在层代理存根上调用

方法的Web层,这在数据层上成功运行。


但是,我试图创建一个ASP页面完全相同

的东西,它会失败。


err.description:权限被拒绝

err.number :70


我认为这是匿名网络用户的权限问题。

网络用户无法访问代理存根,还是数据层上的权限




我们非常欢迎任何建议


谢谢


Griff

解决方案

尝试在dcomcnfg中给予COM对象权限(从开始---运行)


雷在工作


格里夫 <何***** @ The.Moon>在消息中写道

新闻:e1 ************* @ TK2MSFTNGP15.phx.gbl ...

我有一个双层系统。

我已经在数据层(Win2003)上创建了一个COM +包并将其导出为一个COM +代理(符合v 1.0)并将其安装到Win2000 Web上/>
我创建了一个简单的VB6应用程序,我在Web层上运行,在代理存根上调用
方法,并在数据层上成功运行。 br />
但是,我试图创建一个完全相同的ASP页面并且它会失败。

错误描述:权限被拒绝
err.number:70

我认为这是匿名Web用户的权限问题。
是Web用户无法访问Proxy存根,或者是它是数据层上的权限吗?

任何建议都是最受欢迎的

谢谢

Griff



>尝试给dcomcnfg中的COM对象赋予权限(从开始---运行)


对不起,没有让这个工作....我尝试的是如下:


1 - 我在网络层运行dcomcnfg(带代理的那个)

2 - 我在应用程序列表中选择了类ID {A89 ..}

3 - 我转到标签默认安全性

4 - 在第二个框中默认启动权限我设置了以下内容:


添加用户IUSR_ ^ servername ^ =允许启动

5 - 我再次尝试了网页.. ..相同的许可被拒绝错误


Griff


您可能需要......

... DLL的文件级别的任务或其他什么

暴露该com对象。


XP的最新服务包以及许多微软件

补丁正在收紧,而且没有像我们曾经拥有的那样给予开发者很多

的自由(这是一件好事)。


让我知道文件权限是否解决了问题。


D.

Griff写道:

尝试给dcomcnfg中的COM对象赋予权限(来自开始---运行)



抱歉,没有让这个工作....我尝试的如下:

1 - 我在网络层运行dcomcnfg(带代理的那个)
2 - 我在应用程序列表中选择了类ID {A89 ..}
3 - 我转到选项卡默认安全性
4 - 在第二个框中Default Launch Permissio NS"我设置了以下内容:

添加用户IUSR_ ^ servername ^ =允许启动

5 - 我再次尝试了网页....相同的权限被拒绝错误

Griff



I have a two tier system.

I''ve created a COM+ package on the data tier (Win2003) and exported it as a
COM+proxy (v 1.0 compliant) and installed this onto a Win2000 web
application.

I''ve created a simple VB6 application that I run on the web tier to call a
method on the proxy stub and this successfully runs on the data tier.

However, I''ve attempted to create an ASP page that does exactly the same
thing and it falls over.

err.description: Permission denied
err.number: 70

I presume that this is a permissions problem for the anonymous web user. Is
it that the web user can''t access the Proxy stub, or is it a permissions
thing on the data tier?

Any advice would be most welcome

Thanks

Griff

解决方案

Try giving rights to the COM object in dcomcnfg (from Start---run)

Ray at work

"Griff" <Ho*****@The.Moon> wrote in message
news:e1*************@TK2MSFTNGP15.phx.gbl...

I have a two tier system.

I''ve created a COM+ package on the data tier (Win2003) and exported it as
a COM+proxy (v 1.0 compliant) and installed this onto a Win2000 web
application.

I''ve created a simple VB6 application that I run on the web tier to call a
method on the proxy stub and this successfully runs on the data tier.

However, I''ve attempted to create an ASP page that does exactly the same
thing and it falls over.

err.description: Permission denied
err.number: 70

I presume that this is a permissions problem for the anonymous web user.
Is it that the web user can''t access the Proxy stub, or is it a
permissions thing on the data tier?

Any advice would be most welcome

Thanks

Griff



> Try giving rights to the COM object in dcomcnfg (from Start---run)

Sorry, not got this to work....what I tried was as follows:

1 - I ran dcomcnfg on the web tier (the one with the proxy)
2 - I selected the class ID in the list of applications {A89..}
3 - I went to the tab "Default Security"
4 - In the second box "Default Launch Permissions" I set the following:

Add user "IUSR_^servername^ = Allow Launch

5 - I tried the web page again .... same "permission denied" error

Griff


You may need...
....permissions at the file level for the DLL or whatever
is exposing that com object.

The latest service pack to XP as well as many of microsofts
patches are tightening up and not giving the developer as many
freedoms as we once had (which is a good thing).

Let me know if the file permissions resolved the issue.

D.
Griff wrote:

Try giving rights to the COM object in dcomcnfg (from Start---run)


Sorry, not got this to work....what I tried was as follows:

1 - I ran dcomcnfg on the web tier (the one with the proxy)
2 - I selected the class ID in the list of applications {A89..}
3 - I went to the tab "Default Security"
4 - In the second box "Default Launch Permissions" I set the following:

Add user "IUSR_^servername^ = Allow Launch

5 - I tried the web page again .... same "permission denied" error

Griff



这篇关于实例化COM +代理时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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