Skip to main content
November 6, 2006
Question

getting NetConnection.Connect.Rejected

  • November 6, 2006
  • 1 reply
  • 508 views
I signed up with a FMS hosting service. They have a nice interface where I was able to install an application. I called it "simple", cause its bare bones simple. After installing, it gives me the rtmp connection string. Problem is - I get NetConnection.Connect.Rejected every time. I tried removing it, and installing again. But same thing.

This is in frame 1. Is there something wrong with this?
-----------------------------------------------------------------------------------

my_nc = new NetConnection();


my_nc.onStatus = function (info) {
switch(info.code)
{
case "NetConnection.Connect.Success":
textbox.text = "success" + "\n";
break;
case "NetConnection.Connect.Rejected":
textbox.text = "rejected" + "\n";
textbox.text += info.application.msg + "\n";
textbox.text += "Event: " + info.code + "\n";
textbox.text += "Type: " + info.level + "\n";
textbox.text += "Message:" + info.description + "\n";
break;
case "NetConnection.Connect.Failed":
textbox.text = "failed";
break;
case "NetConnection.Connect.Closed":
textbox.text += "Connection closed.";
break;
}
};


my_nc.connect("rtmp://exx3333.rtmphost.com/simple");

----------------------------------------------------------------------------
(I didn't put in the exact rtmp string in there, since this is a public forum)

The result I get printed out in the text box is:

rejected
undefined
Event: NetConnection.Connect.Rejected
Type: error
Message:[ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (simple) is not defined.

But - the hosting service's interface panel shows that application "simple" is there. I sent the hosting service a support request, but I probably won't hear back from them until Monday.
    This topic has been closed for replies.

    1 reply

    November 6, 2006
    Hi Cisco_s,

    Your code looks good - I think there's nothing you can do other than wait. Apparently there's something wrong with the VHOST configuration on their side.