无法通过COM访问C#DLL [英] C# DLL not accessible via COM

查看:90
本文介绍了无法通过COM访问C#DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向Classic ASP应用程序公开一些数据库功能.我已经建立了一个com-visible程序集,并使用

regasm/codebase/tlb MyCOMComponent.dll

注册了该程序成功,但是尝试在ASP应用程序中创建实例时,我得到了

服务器对象
错误'ASP 0178:80070005'

Server.CreateObject访问错误

/interoptest.asp ,第2行

在检查权限时,对Server.CreateObject的调用失败.拒绝对此对象的访问.

我尝试赋予Everyone组对DLL的完全控制权,并为IIS用户添加单独的权限.我也尝试过在DCOM Config中设置权限,但是未列出我的COM程序集.

有什么想法吗?

解决方案

感谢您的发帖!我建议在一个MS论坛中发布您的问题,

首页 ASP. NET论坛

位于此处: http://forums.asp.net/.

祝您有美好的一天!

I'm trying to expose some database functions to a Classic ASP application. I've built a com-visible assembly and registered it using

regasm /codebase /tlb MyCOMComponent.dll

The registration succeeds, but when trying to create an instance in the ASP application, I get

Server object
error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/interoptest.asp, line 2

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

I've tried giving the Everyone group full control over the DLL, along with adding separate permissions for the IIS users. I've also tried setting permissions in the DCOM Config, but my COM assembly is not listed.

Any ideas?

解决方案

Hi,

 

Thank you for your post!  I would suggest posting your question in one of the MS Forums,

HomeASP.NET Forums

located here:  http://forums.asp.net/.

Have a great day!


这篇关于无法通过COM访问C#DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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