Skip to main content
Known Participant
November 11, 2006
Question

Begginer problem??

  • November 11, 2006
  • 17 replies
  • 1318 views
having trouble with FMS2. Done everything like in documentation, Menagement console is working, but any sample aplication wont connect to server. Keep getting:

NC.onStatus> info.code: NetConnection.Connect.Rejected
NC.onStatus> info.code: NetConnection.Connect.Closed

Tryed everything, but it seems something bad is going on.

I'm developing and running FMS on the same machine.

Here is a core log:

"#Version: 1.0
#Start-Date: 2006-11-11 17:09:07
#Software: Macromedia Flash Media Server 2.0.3 r68
#Date: 2006-11-11
#Fields: date time x-pid x-status x-ctx x-comment
2006-11-11 17:09:07 3868 (i)2581237 Starting admin app on core (3868). -
2006-11-11 17:09:07 3868 (i)2581238 Core (3868) connecting to admin. -
2006-11-11 17:09:07 3868 (i)2581231 Core (3868) connected to admin. -
2006-11-11 17:09:07 3868 (i)2581234 Core (3868) connection to admin accepted. -
2006-11-11 17:09:07 3868 (i)2581246 Core (3868) sending register cmd to edge. -
2006-11-11 17:09:07 3868 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: The parameter is incorrect. 87). -
2006-11-11 17:13:01 3868 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: The parameter is incorrect. 87). -
2006-11-11 17:14:08 3868 (i)2581247 Core (3868) disconnected from edge. -
2006-11-11 17:14:08 3868 (i)2581233 Core (3868) disconnecting from admin. -
2006-11-11 17:57:48 1716 (i)2581247 Core (1716) disconnected from edge. -
#End-Date: 2006-11-11 17:58:09"

Here is the edge log:

"#Version: 1.0
#Start-Date: 2006-11-11 18:39:17
#Software: Macromedia Flash Media Server 2.0.3 r68
#Date: 2006-11-11
#Fields: date time x-pid x-status x-ctx x-comment
2006-11-11 18:39:12 2084 (w)2581201 No primary license key found. Switching to Developer Edition. -
2006-11-11 18:39:13 2084 (i)2631174 Listener started ( _defaultRoot__edge1 ) : 19350 -
2006-11-11 18:39:14 2084 (i)2631174 Listener started ( _defaultRoot__edge1 ) : 1935 -
2006-11-11 18:39:17 2084 (i)2581252 Registering core (2100). -
2006-11-11 18:40:31 2084 (i)2631213 Connection rejected by server. Reason : (_defaultRoot_, _defaultVHost_) : Application (localhost) is not defined. -
2006-11-11 18:40:31 2084 (w)2641213 Connection rejected by server. Reason : [ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (localhost) is not defined. -
2006-11-11 18:54:50 2084 (i)2631213 Connection rejected by server. Reason : (_defaultRoot_, _defaultVHost_) : Application (localhost) is not defined. -
2006-11-11 18:54:50 2084 (w)2641213 Connection rejected by server. Reason : [ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (localhost) is not defined."

My configuration is:
win xp 64bit
AMD Athlon 64 X2 Dual
2 GB of ram

Eny help would be highly appreciated......excuse any spelling or gramar erroes:)
    This topic has been closed for replies.

    17 replies

    rjanmaAuthor
    Known Participant
    November 12, 2006
    yes I allready read that article before this post on the this forum, but my main problem is not this error (at least I think so), my main problem is this error in log file: "Connection rejected by server. Reason : (_defaultRoot_, _defaultVHost_) : Application (localhost) is not defined", as there two error never appers in the same time, or first or secont, never both.

    But maybe I'm wrong.

    I'm using NOD32 antyvirus, tryed to disable it before, tryed to shut down windows firewall...tryed anything I could think of.....but no luck. Than I mane this question on this forum.

    Has the fact that I'm having broadband router on my ADSL line in any relation to this problem?

    If not, can you tell me is there any setting in MANAGEMENT CONSOLE that could cause it.....,or fix it?
    Inspiring
    November 12, 2006
    Hello marek,

    I craveled trough the forum and chatyfig searching for "Asynchronous I/O operation failed".... I never ran into this problem you describe, but some of the found posts report that very restrictive Antivirus Software (Norton, Kaspersky) might be related to it. Use the search function above to dig for "Asynchronous I/O operation failed" and have a look at here :
    http://www.webservertalk.com/archive374-2006-3-1415982.html

    Hopefully this helps a bit....

    Regards

    MIBtwo
    rjanmaAuthor
    Known Participant
    November 12, 2006
    Thanx for reply, but when I use two slashes "//" nothing happens, I must use one slash "/". With one slash I get connection rejected, with two I dont even get that.

    Is there any other reason for rejecting connection?

    P.S. I tryed even on my 32bit machine and same problem occured....What I'm doing wrong?
    Inspiring
    November 12, 2006
    Hello marek,

    "rtmp://localhost:1935/application_dir/" should be the right thing.

    Regards

    MIBtwo
    rjanmaAuthor
    Known Participant
    November 12, 2006
    anyone please....
    rjanmaAuthor
    Known Participant
    November 12, 2006
    Hi Jay,
    yes I added the directory in the application folder. BTW there is several paterns of errors I can reproduce in log files:

    1. if I use "rtmp:/application_directory" string than I get "Asynchronous I/O operation failed (Failed to attach to completion port: The parameter is incorrect. 87)." in the log file and staus in swf is "connection failed"

    2. if I use "rtmp:/localserver/application_directory" than I get "Connection rejected by server. Reason : (_defaultRoot_, _defaultVHost_) : Application (localhost) is not defined. -" in the log file, and status in swf is "connection rejected"

    3. if I use any combination with two slashes i.e. "rtmp://etc.." I get nothing, and in documentation is not explicitlly written that you must use 1 or 2 slashes

    ---------------------------------------
    ans the code is:

    my_nc= new NetConnection();
    my_nc.onStatus = function(info) {
    status_txt.text += "NC.onStatus> info.code: " + info.code + newline;
    if (info.code == "NetConnection.Connect.Success") {
    status_txt.text = "Connected to " + this.uri + newline;
    }
    }
    my_nc.connect("rtmp:/localhost/livecast");
    November 11, 2006
    Did you add the application directory to the FMS/applications dir? From the errors there, it looks like you might not have.

    Please post the code you're using to make your netconnection... that will help find the answer.