Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / May 2006



Tip: Looking for answers? Try searching our database.

netConnection.Call.BadVersion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
whichCharlie - 25 Nov 2003 14:13 GMT
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!!!
Dross.2 - 25 Nov 2003 17:01 GMT
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...
whichCharlie - 26 Nov 2003 11:21 GMT
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!!

whichCharlie - 26 Nov 2003 11:27 GMT
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#");
    };
Dross.2 - 26 Nov 2003 13:23 GMT
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.
whichCharlie - 26 Nov 2003 14:01 GMT
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....  
Dross.2 - 26 Nov 2003 14:09 GMT
"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?
whichCharlie - 26 Nov 2003 15:11 GMT
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.
Dross.2 - 26 Nov 2003 15:16 GMT
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?"
whichCharlie - 27 Nov 2003 13:00 GMT
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.


scottr@benjerry.com - 09 Feb 2004 18:01 GMT
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
Anny - 01 May 2006 09:35 GMT
first of all i would like to thank those who have designed this site, coz it seems to be usefull for everyone. even though the site seems  to be very attractive  to so keep on going. all the best
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.