Solved

0x800A01AD - ActiveX component can't create object

Posted on 2007-12-04
13
1,905 Views
Last Modified: 2013-11-18
I'm trying to setup a test environment on my machine here and just cannot get this **** DLL file to work.  It's called as part of a login authorization script.  This is an app used all over the company and works everywhere else, so the code itself is fine.

- I have registered and unregistered and re-registered this component a thousand times

- The following have Full Control: Administrators, My Account, SYSTEM

- The following have Read/Execute access: IWAM_TESTLAPTOP, IUSR_TESTLAPTOP, Everyone, ANONYMOUS

I've even compared security and IIS settings with someone with the same machine as mine, and still I get the same error.  Please help.  Relevant snippet follows:
set objLogin  = server.createObject("SPSSecurity2.security")
 
with objLogin
	if request("exID") = "" then
		blnAuth =  .Authenicate_User(cstr(user_id),cstr(pwd),1)

Open in new window

0
Comment
Question by:mvarner2000
  • 8
  • 5
13 Comments
 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20404486
Have you tried running Process Monitor http://www.microsoft.com/technet/sysinternals/Utilities/processmonitor.mspx  and filtering for Access Denied errors?
0
 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20404670
Also if you try creating the object in a VBscript file rather than ASP on the machine do you still see an error message (as below)

'File --- test.vbs
Dim objLogin  

set objLogin  = createObject("SPSSecurity2.security")
set objLogin  = Nothing
0
 
LVL 3

Author Comment

by:mvarner2000
ID: 20404962
Thanks Martin... can you provide any guidance on the use of Process Monitor?  I tried to use it but while I can find my ASP file (no errors associated) I don't see the DLL file anywhere.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20405089
And what about if you paste the following into a file with a vbs extension and try running it by double clicking the file?

Dim objLogin  
set objLogin  = createObject("SPSSecurity2.security")
set objLogin  = Nothing
0
 
LVL 3

Author Comment

by:mvarner2000
ID: 20405179
Nothing happens... no error, nothing opens.
0
 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20405268
Well that's kind of good news then.

When I run it from my machine (which obviously doesn't have SPSSecurity2 installed) I get an error so it must be registered properly and it must be something to do with the difference between running interactively under a user account and running under the asp account.

Have you set permissions using dcomcnfg.exe?

Component Services -> Computers -> My Computer -> DCOM Config -> SPSSecurity2.security

Properties -> Security

Launch and Activation Permissions -> Customize      Edit and add IUSR_XXX and grant Local Launch and Local Activation rights

Access Permissions -> Customize       Edit and add  IUSR_XXX and grant Local Access rights
0
 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20405452
By the way to turn on DCOM error logging you can do the following.

Confirm that you are experiencing this permissions issue
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

You can confirm that you are experiencing this permissions issue by turning on DCOM error logging. You can enable error logging by changing the registry and then restarting the DCOM process that you want to examine. The DCOM process that you want to examine determines whether you have to restart the computer. To turn on DCOM error logging, follow these steps:
1.      Click Start, click Run, type regedit, and then click OK.
2.      Locate the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole registry subkey.
3.      Right-click the Ole value, point to New, and then click DWORD Value.
4.      Type ActivationFailureLoggingLevel, and then press ENTER. Double-click ActivationFailureLoggingLevel, type 1 in the Value data box, and then click OK.
5.      Right-click the Ole value, point to New, and then click DWORD Value.
6.      Type CallFailureLoggingLevel, and then press ENTER. Double-click CallFailureLoggingLevel, type 1 in the Value data box, and then click OK.
7.      Restart the DCOM program, and then examine the System log and the Application log for DCOM errors.
The error messages in the event log contain information that you can use to help resolve the permissions issue.

You can turn off DCOM error logging by changing the ActivationFailureLoggingLevel value and the CallFailureLoggingLevel value to zero.

(From http://support.microsoft.com/default.aspx?scid=kb;en-us;892500)
0
 
LVL 3

Author Comment

by:mvarner2000
ID: 20405811
DCOM Config doesn't listed the SPSSecurity DLL.  I even went through and re-registered it, but it still does not appear.
0
 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20405948
It's a long time since I've done any COM stuff I think it  may appear as one of the nodes named after a GUID (the AppId) rather than a friendly name but I may be leading you on a wild goose chase. If so I apologise in advance!
0
 
LVL 3

Author Comment

by:mvarner2000
ID: 20406080
After going through every GUID... nothing!  Arg :)

Several GUIDs don't seem  to have any local path information.
0
 
LVL 3

Accepted Solution

by:
Martin-Smith earned 500 total points
ID: 20406512
Apologies. I do remember having to use that utility before for a stubborn error. Anyone else have any solutions?
0
 
LVL 3

Expert Comment

by:Martin-Smith
ID: 20416462
Might be worth trying to turn on the DCOM error logging just to see if it throws up any informative error messages?
0
 
LVL 3

Author Comment

by:mvarner2000
ID: 20441119
My apologies for wasting your time Martin... turns out it was a custom in-house script that had to be run to initialize some sort of DB connection.  I'm awarding points based on effort :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question