Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Class doesn't support Automation: 'CreateObject' unless components run in COM+

96 views
Skip to first unread message

Paal Berggreen

unread,
Aug 22, 2002, 10:29:09 AM8/22/02
to
I have a webclass project (VB 6.0) containing a couple of dll's. Whenever a
user logs onto the web, logon stuff is performed in one of the dll's by
accessing this in global.asa. The dll is an ActiveX component supposed to
run in COM+ during production.

However, for development and debugging I do not require COM+ services, and
it takes a long time for VB to start when the components are in there during
a debug session.

Everything works fine when the components are in COM+/MTS, but if I remove
them I get the following error from global.asa:

Microsoft VBScript runtime (0x800A01AE)
Class doesn't support Automation: 'CreateObject'

It seems that Windows cannot handle createObject on my COM+ components from
global.asa unless they are actually registered in COM+.

I'm running on Windows XP, and this was not a problem on Windows 2000.

If anyone can tell me how I can get the createObject in global.asa to work
without the need to have the component in COM+ I would appreciate it.


--
Paal Berggreen
Trimanet AS
www.trimanet.no
paal.be...@trimanet.no
+47 98 28 55 02

Steven Bras [MS]

unread,
Aug 22, 2002, 1:19:07 PM8/22/02
to
I'm guessing that this may be a security issue; when running outside of
COM+, it may just be that ASP cannot find the dll to instantiate. You can
test this theory using a couple of very handy tools: FileMon and RegMon
from Sysinternals (http://www.sysinternals.com). Be sure to download the
version specific to your class of operating system (ie NT, or 9x).

These utilities log file system and registry access for a chosen process
(you can log all access, or filter on one or more processes) and will
identify access denial to registry keys or files that are critical to
instantiating your object. Basically, you run the utility, and then hit
your page to generate the error. You can then stop logging and examine the
log (search on "Denied") for security problems.

Using this information, you can then set permissions accordingly.

Hope this helps!

Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.

Paul Clement

unread,
Aug 22, 2002, 2:45:56 PM8/22/02
to
On Thu, 22 Aug 2002 16:29:09 +0200, "Paal Berggreen" <paal.be...@trimanet.no> wrote:

¤ I have a webclass project (VB 6.0) containing a couple of dll's. Whenever a


After you removed them from COM+ did you use Regsvr32 to re-register them?


Paul ~~~ pcle...@ameritech.net
Microsoft MVP (Visual Basic)

0 new messages