I am working with CF 10 on a windows 2008 R2 server. We are attempting to employ the RSA authentication system for logins.
Essentially, when a user has been authenticated a cookie is placed on their client machine and we use a method of a dll to access the username who has been authenticated.
The instancing of the COM object and the calling of the getUserName() method works fine in an ASP script; however when the object is instanced in CF and an attempt is made to access the same method an error is thrown.
I dump the methods of the com object after instancing it using the <CFObject tag. The error is thrown when the getUserName() method or any method for that matter are called. The output is shown below.
In the past I have had very few problems instantiating COM objects. Any idea why CF10 fails on this object which is 64 bit by the way?
object of coldfusion.runtime.com.ComProxy
{13178420-1a25-11d4-b579-005004a92ed0}
Methods RSAGetWebIDURL([out, retval]BSTR)
GetTypeInfo([in]UINT, [in]UI4, [out]VOID, [out, retval]VOID)
GetTypeInfoCount([out]UINT, [out, retval]VOID)
AddRef([out, retval]UI4)
RSAGetUserName([out, retval]BSTR)
QueryInterface([in]USERDEFINED, [out]VOID, [out, retval]VOID)
RSADeleteTagField(BSTR, [out, retval]BSTR)
RSAGetTagField(BSTR, I4, [out, retval]BSTR)
RSASetTagField(BSTR, BSTR, I4, [out, retval]BSTR)
RSAGetCSRFToken([out, retval]BSTR)
OnEndPage([out, retval]VOID)
Invoke([in]I4, [in]USERDEFINED, [in]UI4, [in]UI2, [in]USERDEFINED, [out]VARIANT, [out]USERDEFINED, [out]UINT, [out, retval]VOID)
RSAGetShellField([out, retval]BSTR)
Release([out, retval]UI4)
OnStartPage([in]UNKNOWN, [out, retval]VOID)
GetIDsOfNames([in]USERDEFINED, [in]I1, [in]UINT, [in]UI4, [out]I4, [out, retval]VOID)
Get Properties error([out, retval]I4)
The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.
The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
An exception occurred when executing a COM method.
The cause of this exception was that: AutomationException: 0x80010105 - The server threw an exception..
The error occurred in C:/inetpub/wwwroot/ACAAdvisors/rsatest/RSACookieTest.cfm: line 17
15 : <cfdump var="#RSACookieAPI#">
16 :
17 : <cfset theUserName=RSACookieAPI.RSAGetUsername()>
18 : <cfoutput>
19 : <p>