Solved

0x800A01AD - ActiveX component can't create object

Posted on 2007-12-04
13
1,901 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
 
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now