Solved

0x800A01AD - ActiveX component can't create object

Posted on 2007-12-04
13
1,909 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

636 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