ERROR TO RUN THE FLEX AMF APPLICATION

Asked By 0 points N/A Posted on -
qa-featured

Hello Friends!

I am having an Argument Error when trying to load Flex AMF app on Facebook. I know that Facebook used a browser to open every application. 

But I could not figure out how I can get rid of this error. I used FACEBOOK 4.5 for debugging. 

Does anyone here know a solution for this? 

The error is listed below:

ArgumentError: Error #2004: One of the parameters is invalid. url: 'http:weborb.aspx'

at flash.net::NetConnection/connect()
at mx.messaging.channels::NetConnectionChannel/internalConnect()[E:devhero_privateframeworksprojectsrpcsrcmxmessagingchannelsNetConnectionChannel.as:240]
at mx.messaging.channels::AMFChannel/internalConnect()[E:devhero_privateframeworksprojectsrpcsrcmxmessagingchannelsAMFChannel.as:307]
at mx.messaging::Channel/connect()[E:devhero_privateframeworksprojectsrpcsrcmxmessagingChannel.as:884]
at mx.messaging::ChannelSet/connectChannel()[E:devhero_privateframeworksprojectsrpcsrcmxmessagingChannelSet.as:1707]
at mx.messaging::ChannelSet/reconnectChannel()[E:devhero_privateframeworksprojectsrpcsrcmxmessagingChannelSet.as:1809]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Help me please.

SHARE
Answered By 0 points N/A #109510

ERROR TO RUN THE FLEX AMF APPLICATION

qa-featured

The reason as to why you are getting that error is mostly because the file was loaded through the file system when it is supposed to be loaded through a web server.

That could have happened because your flex project is compiled using the following configuration file: /weborb30/web-inf/flex/services-config.xml

All remote calls tend to use the my-amf channel, and the default endpoint URL that is used by the channel is as follows: weborb.aspx.

You will need to note that;weborb.aspx; is NOT a file, but it is a URL that maps between ASP.NET and the flex amf, and therefore when a client sends a request to weborb.aspx, ASP.NET will pass that request to WebORB.

In the event that you try to load your html file through a file system, the all of the http requests that are related to the URLs will not be able to get to the virtual directory and therefore cause the error.

You will therefore need to load the html file through the web server.

Expert techyv

 

Login/Register to Answer

Related Questions