all groups > macromedia flash flash remoting > november 2003 >
You're in the

macromedia flash flash remoting

group:

netConnection.Call.BadVersion


netConnection.Call.BadVersion whichCharlie
11/25/2003 2:13:51 PM
macromedia flash flash remoting:
netConnection.Call.BadVersion ??????

I have given up on flash remoting. I get this error almost every time i go to build an app. i thought i had it sussed. But no, yesterday i spent 4 hours trying to get it to work. I tried the solution? i used the last time but that did not work. Searched every where for info on it, and all i could find was this .net thread and i am using CFMX 6.1. Seems like a sporadic problem, which gives absolutely no clue as to what causes it. I not going to touch remoting until i find out what is causing this problem, so any pointers would help.

Paul Stewart

Macromedia Certified FlashMX Developer!!!

Re: netConnection.Call.BadVersion Dross.2
11/25/2003 5:01:44 PM
how about you post something detailed rather than a vague rant? There are literally thousands of people running remoting on MX 6.1 without a hitch, so it is definently something with your configuration.

The first thing to check is if the gateway is up... http://yourserver.com/flashservices/gateway
blank page: good
404: bad... with CFMX likely due to a missing JRunScripts virtual directory... very easy to fix.

If the gateway is up, then how are you trying to connect? Post the code you are using...

Re: netConnection.Call.BadVersion whichCharlie
11/26/2003 11:21:13 AM
look if i have spent upwards of 20 hours not being able to get past first base, on something which chooses to work sometimes and not others - i am entitled to rant!!


Re: netConnection.Call.BadVersion whichCharlie
11/26/2003 11:27:21 AM
Below is an extract of an app that was working but has now decided not to play..


#include "DataGlue.as"
#include "NetServices.as"
#include "NetDebug.as"
init = function () {
if (this.inited != undefined) {
return;
} else {
this.inited = true;
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
gatewayConnnection = NetServices.createGatewayConnection();
london = gatewayConnnection.getService("companies_directory.london.london", this);
dataForServer = new Object();
trace("REMOTING INITIALIZED");
}
};
//call init function
init();

_global.mode = "no mode";
verityResult.text = "";

//allows for edit screen to be switched between entry and edit
function setEntryMode()
{
mode = "entry";
gotoAndStop("edit");
};

//lists all articles accordng to their sectionID
function listArticles()
{
// SERVER CALL
london.listArticles(sectionId);
//trace("listArticles Function Called");
};


//this is called after data has been succesfully retrieved
//from the server-side method of the same name
function listArticles_Result(dataFromServer)
{
//trace("Data for listArticles received from Server");

// initialize the local Data Object and transfer the incoming recordset
//this.employeeData_rs = dataFromServer;

// populate the UI Component using DataGlue to Format the Data
DataGlue.bindFormatStrings(articles_lb, dataFromServer,"#title#", "#londonId#");
DataGlue.bindFormatStrings(articlesLive_lb, dataFromServer,"#title#", "#londonId#");
};



Re: netConnection.Call.BadVersion Dross.2
11/26/2003 1:23:02 PM
Ok, I am going to assume that http://localhost:8500/flashservices/gateway returns blank right? Can you post

a): the entire contents of the net connection debugger when this happens
b): the list articles cffunction
c): a brief overview of the database tables, fields, and field types.

Re: netConnection.Call.BadVersion whichCharlie
11/26/2003 2:01:37 PM
Believe me i have been through all that with a fine tooth comb, and i really dont think it is anything to do with what i have done. (THE APP WAS WORKING, THEN IT WASN'T - I NEVER TOUCHED THE CODE)

There is something causing that "netConnection.Call.BadVersion" I am not the only person who has had it.

Upgraded to MX2004, which means the flash player i am using is version 7.0. Perhaps that could be something to do with it? Who knows. I just dont have the time or the faith to investigate.

i really appreciate you trying to help. But its too late i just can't take anymore....



Re: netConnection.Call.BadVersion Dross.2
11/26/2003 2:09:05 PM
"really dont think it is anything to do with what i have done", "Upgraded to MX2004"... I'm sorry, that last post really had me laughing. If you really spent "20 hours" trying to figure this out, maybe the fact that you completely changed the environment you are working in had something to do with it? Did you republish the movie in MX04? If so, what were the pulish settings? Do you still have the old MX .fla? What happens when you run it in regular MX? How about in the browser? Also, when you invoke the method with CF and not remoting, is it returned properly?




Re: netConnection.Call.BadVersion whichCharlie
11/26/2003 3:11:13 PM
oh please.... of course i am still using regular MX

I was talking about the flash player version. Which i thought aloud whilst writing the last post, MX2004 might have overwritten the version used in MX. I have since checked this and it doesn't.

It still dose not work in version 6. Your suggestions were welcomed but not helpful.

I want to hear from more people who have come across this error, and have managed to find out what is causing it.

I know there are other threads in the forums on this, but none with an answer. Hence the reason i started this one.

Re: netConnection.Call.BadVersion Dross.2
11/26/2003 3:16:10 PM
I've had it before... it was the first day I tried to use remoting. I forget what caused it but it was a server side issue. You haven't answered many of my questions, such as:

"Can you post:
a): the entire contents of the net connection debugger when this happens (including the call)
b): the list articles cffunction
c): a brief overview of the database tables, fields, and field types. "

and

"Also, when you invoke the method with CF and not remoting, is it returned properly?"

Re: netConnection.Call.BadVersion whichCharlie
11/27/2003 1:00:01 PM
The part you forgot was most probably the info that might have helped me.

Anyway I moved the CFC file into a different directory and hey presto! "addEmail_Result was received from server"

If anybody can tell me why a web service will stop working and then start working when you move it into a different directory, (it should not a permission issue as no mods were made) i would be much obliged. As i feel this problem/bug could raise it's ugly head again sometime in the future.

Like a lot of mysterious problems, this took a lot of probing in the dark and it is nearly always the least obvious action that can help. Its not a perfect answer as i don't really know what is causing the problem.

This may seem a petty issue. But when you waste the hours that i have on this, its not petty at all.







Re: netConnection.Call.BadVersion scottr NO[at]SPAM benjerry.com
2/9/2004 6:01:02 PM
Did anyone figure out what the problem was here? I'mhaving the same problem. I
had this working and then I started using Flash MX 2004 and it stopped working
and I began getting this same erro

NetConnection.Call.BadVersio

The gateway is being found and the method works fine when called by directly
Coldfusion
Re: netConnection.Call.BadVersion blpiltin
3/8/2004 10:24:03 PM
I had this problem for a week until I realized that I had changed my web.config
file to use forms security instead of none. I switched back to:

<authentication mode="None"/>

and it worked fine. I haven't seen this documented anywhere else, so I hope
this helps someone. By the way, if anyone knows how to use forms security in
conjunction with remoting it would be a big help to me. Thanks.

Re: netConnection.Call.BadVersion Cocwaye
3/25/2004 9:31:02 AM
hi scottr@benjerry.com, and whichCharlie,

did you solve your problem?? can you tell me your solution ?? i am having the
same problem "BadVersion"
i am using sun one application server, can anyone help me ??

thanks ......
Re: netConnection.Call.BadVersion cruiser NO[at]SPAM t1crew.com
3/25/2004 9:52:41 PM
Hi,

The BadVersion error is because the AMF that is sent across is encoded
by SSL which cannot be recognized by Flash. This only happens if you
are tryin to connect to the server from the Flash IDE itself. If you
publish the fla file and place the html in the server itself and then
try the falsh file this error disappears cause the container decodes
the AMF.

So what i do is during development I turn the secure redirection to
false and during deployment i turn it on.

Hope this helps.

Re: netConnection.Call.BadVersion seversp
4/5/2004 9:23:49 PM
"So what i do is during development I turn the secure redirection to
false and during deployment i turn it on."

Re: netConnection.Call.BadVersion Firezone
4/7/2004 8:25:32 AM
Hi there, I've been having this problem for sometime(NetConnection.BadVersion)
then I came across a article about this sometime ago.( http://www.amfphp.org )
anyway this might help.

A very common issue is to get a "NetConnection.Call.BadVersion" answer in your
NetConnection debugger. There are various causes for this failure; the general
reason is that the client doesn't receive a correctly formatted AMF message.
This is generally due to installation errors, parse errors in your code, or any
number of other reasons. The most common are listed below.

Your service has parse errors. Point your browser at the URL of your services,
for instance: http://host/flashservices/services/examples/ExSrv.php to see what
parse errors are prevalent in your code.

Your script is pushing data into the output buffer. Check that your script has
no leading OR trailing newlines or spaces and that your script isn't outputting
any data with an echo, print, or other similar control structure or function as
this will result in sending this data to the client, before the actual AMF
message is sent.

If you work under Windows or Mac OS X, your editor may be creating
incompatible line breaks. Windows terminates every line with CRLF (\n\r); some
applications in Mac OS X terminate lines with the standard Mac line ending
(chr(13)) plus a CR (\n). We suggest the following editors for Windows users:

Macromedia DreamWeaver MX (Windows and Mac OS X) with the preferences set to
use LF (Unix) line breaks.
vi (Windows and Mac OS X)
EditPlus in combination with Flush
UltraEdit in combination with syntax highlighting
SciTE|Flash

also you might have to rewrite your scripts to make this work.
RE: Anny
5/1/2006 12:00:00 AM
AddThis Social Bookmark Button