简体   繁体   English

ActiveX组件无法在Classic ASP中创建对象

[英]ActiveX component can't create object in Classic ASP

The error is: 错误是:

ActiveX component can't create object for aBRR.Generator

The code on that line is: 该行上的代码是:

set taMaker = createObject("aBRR.Generator")

Classic-asp in the app pool has Enable 32 bit to true. 应用程序池中的Classic-asp具有启用32位为true。

What am I missing? 我想念什么? Thanks in advance. 提前致谢。

If your site is using Anonymous authentication: 如果您的站点使用匿名身份验证:

  • Open IIS Manager 打开IIS管理器
  • Navigate to your site 导航到您的网站
  • Open Authentication 开放式认证
  • Open the properties for Anonymous 打开“ 匿名”的属性
  • Change it to use Application Pool Identity 更改它以使用应用程序池标识

Note that if your site runs under a special user you created for that purpose, this may break other things. 请注意,如果您的网站在为此目的而创建的特殊用户下运行,则可能会破坏其他功能。 But for all of my standard sites with Anonymous auth, this fixed it. 但是对于我所有带有匿名身份验证的标准站点,此问题已得到修复。

In my case, I found that there was both a 32-bit and a 64-bit version of regasm.exe. 就我而言,我发现regasm.exe既有32位版本又有64位版本。 As in: 如:

C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\regasm.exe C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ regasm.exe

vs.

C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\regasm.exe C:\\ WINDOWS \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ regasm.exe

I also had the AppPool set for 32 bit applications, so it was important that I use the 32bit regasm.exe to register the .dll in order to avoid the ActiveX error. 我还为32位应用程序设置了AppPool,因此使用32位regasm.exe注册.dll以避免ActiveX错误很重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 经典asp:错误'800a01ad'ActiveX组件无法创建对象 - Classic asp: Error '800a01ad' ActiveX component can't create object activex无法通过vbs创建对象,但可以通过经典asp创建对象 - activex can't create object by vbs but can by classic asp 经典ASP和COM DLL在Server 2008 R2中不起作用(Microsoft VBScript运行时错误'800a01ad'ActiveX组件无法创建对象) - Classic ASP and COM DLL Does not work in Server 2008 R2 (Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object ) ActiveX组件无法创建对象(comReport) - ActiveX component can't create object (comReport) ActiveX组件无法创建对象:“ CDONTS.Newmail” - ActiveX component can't create object: 'CDONTS.Newmail' ActiveX组件无法创建对象:“ MSXML2.ServerXMLHTTP.4.0” - ActiveX component can't create object: 'MSXML2.ServerXMLHTTP.4.0' ActiveX组件无法创建对象COM互操作 - ActiveX component can't create object COM interop 无法创建ActiveX对象 - Can't Create ActiveX Object VB6 +经典ASP:开发ActiveX组件 - VB6 + classic asp: developing activeX component ActiveX组件无法创建对象:在注册dll时没有名称空间的类会发生什么情况? - ActiveX component can't create object: what happens to classes that don't have a namespace when the dll is registered?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM