Skip to main content
Known Participant
July 23, 2012
Question

Client.Header.BadVersion

  • July 23, 2012
  • 1 reply
  • 1028 views

hello

from FMS i try to Communicate with: asp.net c sharp

this way:

application.onConnect = function(client)

{

     application.acceptConnection(client);

        var myResult = new Object();

       

        myResult.onResult = function (resultText) {

          trace(resultText);

        };

        myResult.onStatus = function (resultText) {

          trace(resultText);

        };

       

        var my_conn = new NetConnection();

       

        my_conn.onStatus = function(info){

            trace(info.code);

        };

        my_conn.connect("http://localhost/testFMSrespond.aspx");

        my_conn.call("/", myResult);

        my_conn.close();

}

and i keep getting this error:

Client.Header.BadVersion

the testFMSrespond.aspx page cod is:

protected void Page_Load(object sender, EventArgs e)

{

     Response.Write("good");

}

What do i do wrong?

thanks

cheinan

This topic has been closed for replies.

1 reply

July 24, 2012

Hi Cheinan,

NetConnection is only used to connect to an application server running a Flash Remoting gateway over HTTP.

For the above usecase you can try using LoadVars.

var lv= new LoadVars();
application.onConnect = function(client) {
application.acceptConnection(client);
clientObj = client;
lv.load("some_url");
}

lv.onData = function(result) {
trace("onData"+result);
}

cheinanAuthor
Known Participant
July 25, 2012

Thank you for your respond

It halped me and working good

cheinan