I am trying to create a remote object in Flex that makes a call to a custom coldfusion component. Within that coldfusion component I have a user defined function called AuthenticateUser that takes the username and password as arguments from Flex. This function verifies authentication and calls the CFLogin tag, which throws the following error...
coldfusion.runtime.Struct cannot be cast to coldfusion.runtime.Scope
All other remote object calls from Flex are working, except for this one.
I am using Flex3 and ColdFusion 8.
Any ideas/suggestions would be greatly appreciated.
The first thing to do is to test that AuthenticateUser function in a regular CFM page. If it works there, let's see your Flex code.
Thanks for the swift response. I actually got it to work. I'm a little confused because I tried so many different things, but the one that seems to have solved the problem was changing a setting in the services-config.xml file. The <method-access-level> tag defaults to 'remote' and I changed this to 'public and remote'.
Also, I originally tried using an application.cfc, but I did find something on the net that suggested using application.cfm instead. I hope this helps someone save time in troubleshooting.