ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 18th, 2003, 04:04 PM
mad8vskillz mad8vskillz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Philladelphia
Posts: 23 mad8vskillz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ActiveDS (active directory) in ASP problem

i'm trying to use ActiveDS from asp and it's giving me this error.

Quote:
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.


what i've checked (with no success)
i've made sure the dll's on my machine and the server are the same (version).
The dll is registered, values exist in the registry.
There's code referencing it in global.asa.
The iusr_mywebserver has permission to the dll and tlb file.
The code also works from VB (with a little variation).


Code:
BUGGING ASP CODE
'add to Active DS
		set cont = server.createobject("ActiveDS.IADsContainer")  '<-----this is the line that throws error
		set oUser=server.CreateObject ("ActiveDS.IADsUser")'<-----this is the line that throws error
	
				
		cont.getObject ("WinNT://" & domain & ", computer")
		set oUser=cont.create("user", username)
		oUser.SetPassword (password)
		set oUser.AccountExpirationDate = expires
		set oUser.Description=description
		set oUser.EmailAddress=email
		set oUser.FullName=fullname
		set oUser.TelephoneNumber=phone
		
		oUser.SetInfo


Code:
WORKING VB CODE
 Dim cont As IADsContainer
    Dim oUser As IADsUser
    Dim v As Variant


 
    sComputer = myComputer

    Set cont = GetObject("WinNT://" & sComputer & ",computer")

    Set oUser = cont.Create("user", sUser)
    oUser.SetPassword (pass)
    
    oUser.SetInfo



any advice on how to get rid of the error in asp?

Reply With Quote
  #2  
Old August 18th, 2003, 11:28 PM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Have you tried search the M$ website for ActiveDS and/or ASP 0177.

Generally you can find an answer there.
__________________
How can I soar like an eagle when
I'm flying with turkey's?

Reply With Quote
  #3  
Old August 19th, 2003, 08:06 AM
mad8vskillz mad8vskillz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Philladelphia
Posts: 23 mad8vskillz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i've looked for a while, and it doesn't seem to tell me anything that i didn't try
i'm still looking though

Reply With Quote
  #4  
Old August 19th, 2003, 08:11 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
hey, i'm trying to help but I can't seem to find any documentation on this in vbscript, only vb.net...

can you point me to the right direction?

Reply With Quote
  #5  
Old August 19th, 2003, 08:19 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Try using:

set cont = CreateObject("ActiveDS.IADsContainer")

Loose the Server.CreateObject

Try that...


Hope this helps!
Sincerely

Vlince

Reply With Quote
  #6  
Old August 19th, 2003, 08:23 AM
mad8vskillz mad8vskillz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Philladelphia
Posts: 23 mad8vskillz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i too only saw VB code, but if vb can do it, so should asp be able to (the problem is setting up my server so that it does that )

http://msdn.microsoft.com/library/d...i_reference.asp

Reply With Quote
  #7  
Old August 19th, 2003, 08:25 AM
mad8vskillz mad8vskillz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Philladelphia
Posts: 23 mad8vskillz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Vlince
Try using:

set cont = CreateObject("ActiveDS.IADsContainer")

Loose the Server.CreateObject

Try that...


Hope this helps!
Sincerely

Vlince


well, got rid of the 177 error, now i have
Code:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'ActiveDS.IADsContainer'

Reply With Quote
  #8  
Old August 19th, 2003, 08:26 AM
mad8vskillz mad8vskillz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Philladelphia
Posts: 23 mad8vskillz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hmm, maybe it's just me having an I-D-10-T error in my head
it's probably something really simple in windows settings, which i just overlooked.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ActiveDS (active directory) in ASP problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

VeriSign Code Signing




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway