wrapper class.
-----Original Message-----
From: cf coder [mailto:[EMAIL PROTECTED]
Sent: November 27, 2003 9:22 AM
To: CF-Talk
Subject: Can get coldfusion to call the ADSystemInfo com object (ADSI)
Hi, has anybody used the "ADSystemInfo" ADSI component
to retreive basic login information. I am trying to
invoke it using the createObject method. I have
registered the component. I can get it to work with
ASP, but get this error in ColdFusion.
Error Occurred While Processing Request
An exception occurred when instantiating a Com object.
The cause of this exception was that:
java.lang.NullPointerException.
Here is my cfm code : It fails
<cfscript>
ADSysInfo=createObject("com", "ADSystemInfo");
// you need a set user on this line.
writeOutput=('User='&ADSysInfo.UserName);
</cfscript>
Here is my asp code : It works
<%
Set ADSysInfo = CreateObject("ADSystemInfo")
response.write "Current User=" & ADSysInfo.UserName
%>
Can somebody please help me. I need to get this
working in ColdFusion.
Regards,
cf coder
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

