cdub
cdub

Reputation: 25731

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.

What am I missing? Thanks in advance.

Upvotes: 0

Views: 1930

Answers (2)

Der Wolf
Der Wolf

Reputation: 1251

In my case, I found that there was both a 32-bit and a 64-bit version of regasm.exe. As in:

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

vs.

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.

Upvotes: 0

Bryan Slatner
Bryan Slatner

Reputation: 1608

If your site is using Anonymous authentication:

  • Open IIS Manager
  • 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.

Upvotes: 1

Related Questions