不能实例化净COM对象在传统的ASP / VBScript的页面(ASP错误0177) [英] Cannot instanciate .Net COM object in classic ASP/VBScript page (Error ASP 0177)

查看:159
本文介绍了不能实例化净COM对象在传统的ASP / VBScript的页面(ASP错误0177)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了使用.net 3.5启用一个COM互操作类库在C#中。目的是为了提供一些实用功能为传统的ASP页面。我写了一个TEST.ASP网页,其中instanciates所需的对象,并调用它的方法。我的机器上运行良好。

I've written a COM interop enabled class-library in C# using .Net 3.5. The object is meant to provide some utility functions for classic ASP pages. I've written a test.asp page which instanciates the desired object and calls its methods. Works fine on my machine.

在不同的机器(在Windows Server 2003 - 标准版),这是行不通的eventhough的部件正确注册regasm。我查了注册表编辑器,并AFAIK它看起来OK。

On a different machine (Windows Server 2003 - Standard Edition) it doesn't work eventhough the assembly is registered with regasm correctly. I've checked the regedit and afaik it looks ok.

我得到的错误是ASP 0177(错误code)。8000FFFF;的Server.CreateObject-Fehler(错误描述),其转换的Server.CreateObject误差

The error I'm getting is "ASP 0177" (error code), "8000ffff; Server.CreateObject-Fehler" (error description) which translates to Server.CreateObject-Error.

顺便说一句。大会签订并没有任何其他的自定义生成组件的依赖关系(只是系统的东西)。

Btw. the assembly is signed and doesn't have any other custom build assemblies as dependencies (just the system stuff).

没有类似经验的人的东西?

Did anyone experience something similar?

推荐答案

授予的IUSR用户(或任何人你的IIS用户)读取访问以下注册表项做的工作对我来说并解决了问题。

Granting the IUSR user (or whoever your IIS user is) read-access to the following Registry Key did the job for me and fixed the Problem.

HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones

这篇关于不能实例化净COM对象在传统的ASP / VBScript的页面(ASP错误0177)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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