无法通过COM访问C#DLL [英] C# DLL not accessible via COM
问题描述
我正在尝试向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,
Home › ASP.NET Forums
located here: http://forums.asp.net/.
Have a great day!
这篇关于无法通过COM访问C#DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
相关文章
- 不使用COM从VC ++ exe访问c#dll的函数;
- C#DLL 冲突;
- C#Dll问题;
- C调用C#dll;
- 用C#DLL替换C ++ DLL;
- c#dll微软dll异常;
- 如何记录c#dll;
- 如何注册C#DLL;
- 工具按钮c#DLL;
- 使用C#DLL项目C ++;
- 从C ++调用C#dll;
- C#DLL微软的dll异常;
- 使用Python访问C#dll中存在的函数;
- 在MFC应用程序中使用C#dll作为COM;
- 如何从C ++ DLL动态加载C#DLL;
- 必须使用C#DLL调用C ++的dll?;
- 找不到Dll需要帮助(C#DLL);
- 实现一个C#DLL COM文件在非托管C ++程序;
- 在VBScript调用C#DLL;
- C#DLL的插件架构;
- 从Java调用C#DLL;
- VBA C#DLL没有注册;
- 调用基本的C#DLL;
- 从VB调用C#dll;
- 在python中使用ctypes访问C#dll的方法;
其他开发语言最新文章
- 成功安排的软件保护服务,以便重新启动:原因:RulesEngine。;
- 如何解决“我们很抱歉......”但您的计算机或网络可能正在发送自动查询。为了保护我们的用户,我们目前无法处理您的请求。“;
- golang无效操作:type interface {}不支持索引;
- 如何在Visual Studio 2019中创建EXE文件;
- 关于“Add-AppxPackage”的问题powershell命令;
- Windows x64 RabbitMQ安装错误与Erlang环境var(ERLANG_HOME);
- CMAKE_C_COMPILER不是现有编译器工具的完整路径;
- 在Go中将float64转换为int;
- 显示设置 - 屏幕分辨率 - 无法从远程会话更改;
- 使用Twitter登录时出错;