Page 1 of 1

Error API Incompatible

Posted: 07 Feb 2007, 21:36
by fourfour
I get this error when trying to connect ot the server from within Flash:
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='102' /></body></msg>

[Received]: <cross-domain-policy><allow-access-from domain="http://74.52.152.246" to-ports="9339" /></cross-domain-policy>
[Received]: <msg t="sys"><body action="apiKO" r="0" /></msg>
--------------------------------------------------------
WARNING! The API you are using are not compatible with
the SmartFoxServer instance you're trying to connect to
--------------------------------------------------------

I cannot connect throught the webserver either. But I can connect with the admin tool? Any ideas?
Thanks.

Posted: 07 Feb 2007, 21:43
by mrTip
LOL I just had the same problem

Download and install this:
http://www.macromedia.com/exchange/em_download/

Then go to:
/path/to/SmartFox/Flash API/Actionscript 2.0/SmartFoxClient_AS2.mxp
and doubleclick that file

* overwrite any existing smartfox stuff you have

Then try ;)

Posted: 07 Feb 2007, 21:53
by fourfour
Thanks for the help!
I just installed the new Extenstion Manger, but I get the same error message...
Connects fine locally, but not to the server?

Posted: 07 Feb 2007, 22:00
by mrTip
i think that you'll have to wait on lapo for that ;)

Posted: 07 Feb 2007, 22:37
by fourfour
I got it finally. Had to define the path and get rid of the extension. Thanks for the help.

Posted: 27 Mar 2007, 14:35
by tdous
I got it finally. Had to define the path and get rid of the extension. Thanks for the help.
I have the same problem but I don't understand what he means by this solution. Please help.

Thanks! :)

I should say that I have removed any reference to SFS 1.4 from the server, 1.5 is running fine, connecting with AdminTool fine, removed and installed the new AS2 mxp that came with 1.5 and replaced the "it" folder and subfolders in my Flash MX 04 Classes folder.

Posted: 27 Mar 2007, 14:55
by tdous
Ok, ignore the idiot.. needed to restart Flash. I mean.. seriously.. it's been a long day ;)

So for anyone else with this problem in MX2004, all I did was remove the mxp with Macromedia's Extension Manager, reinstall the new AS2 extension that came with 1.5.0 and replaced the sources folder in C:\Documents and Settings\[username]\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes - that's the "it" folder and its contents - with the ones that came with 1.5.0 also.

Posted: 27 Mar 2007, 16:43
by Lapo
okay :)

Posted: 29 Mar 2007, 01:29
by aajames
hello,
I am getting the same error:
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='102' /></body></msg>

[Received]: <cross-domain-policy><allow-access-from domain="*" to-ports="9339" /></cross-domain-policy>
[Received]: <msg t="sys"><body action="apiKO" r="0" /></msg>
--------------------------------------------------------
WARNING! The API you are using are not compatible with
the SmartFoxServer instance you're trying to connect to
--------------------------------------------------------
I went to Extension manager and disabled the older version...but when i tried to delete it, it says it is still in use, even though i have absolutely nothing running. I even uninstalled smartfox server just in case...

When i just double click on the SmartFoxClient_AS2.mxp, the extension manager says: "The same version of ... extension is already installed. Do you want to replace it?' If i hit Yes, it says "this extension is used by another product. It can not be removed but can be disabled. Do you want to disable it?"

I disable it, i try to delete it, nothing...

so, basically i am stuck with 1.2.0... I try connecting to the server with flash and it again gives me the above warning about wrong api version.

any thoughts, rants, anything is appreciated...

aajames


---- edit

ok ok sorry for above rant... i am seeing that there is a whole sticky thread dealing with this. I will read through some of it and see if helps.

---- edit (again)
OK, when i go to extension manager now i get see 'smartfoxserver flash api -as 2.0 -flash mx2004/flash8' version 1.3.5.

I went to folder:
C:\Program Files\SmartFoxServerPRO\Flash API\sources\AS2

And copied the it folder to:
C:\Documents and Settings\aajames\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes

I run flash 8 (in windows) and start the simpleChat.fla file and i get the exact same error listed above.

Posted: 03 Apr 2007, 07:51
by Lapo
Flash is pretty stubborn with compiling classes, and sometimes it keeps using the cached versions, kept in the infamous .aso files.

To see if it's Flash just check the very first request sent by the client.

Code: Select all

<msg t='sys'><body action='verChk' r='0'><ver v='102' /></body></msg> 

Code: Select all

ver v='102'
means that this is version 1.0.2

If you have installed version 1.3.5 you should see

Code: Select all

ver v='135'