Skip to main content
Known Participant
Jul 23, 2012 11:12 AM UTC
Question

Client.Header.BadVersion

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Jul 24, 2012 6:32 AM UTC

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);
}

Translate
cheinanAuthor
Known Participant
Jul 25, 2012 8:33 AM UTC

Thank you for your respond

It halped me and working good

cheinan

Translate