PDA

View Full Version : gateway.aspx problem


astec
12-30-2005, 02:01 PM
After installing flash remoting I couldn't get the samples to work (as I explained in my post yesterday). I solved the problem I was having by moving the bin folder that was in the flashremoting directory directly into my root web directory :o. However, I'm still having problems getting the samples to work. Instead of displaying an error message, they don't do anything.

I went through Jason Perry's tutorial at macromedia and it worked fine.

I noticed my problem was in the following line:
NetServices.setDefaultGatewayUrl( "http://companyurl/flashremoting/gateway.aspx" );

The url in Jason's example is:
NetServices.setDefaultGatewayUrl( "http://www.jasonmperry.com/services/gateway.aspx" );

When I replaced his url to point to the gateway.aspx file on my server it did nothing. It finds my gateway file, but it doesn't seem to be interacting with my ASP .NET file.

Can anyone please tell me what this means?
Thanks!

MrKicks
12-30-2005, 05:39 PM
I am trying to learn this as well so I offer this with that disclaimer:

If you open the NetConnection Debugger and then test your movie it will detail what is going on behind the scenes with your data.

Also in the FRConfig.txt file in the bin directory, set the Log Level=Debug this will give a little more information in the Flash.Log file.

When you connect to the gateway at runtime the 2 proxy files should be created in the Bin directory, a .cs (or vb I'm guessing) and a .dll. If this is not happening for you try the steps in my previous post.

HTH,
MrKicks
www.ladesignstudio.com

astec
12-30-2005, 06:22 PM
Thanks for the tip. I'll try it out.

MrKicks
12-30-2005, 09:10 PM
After installing flash remoting I couldn't get the samples to work (as I explained in my post yesterday). I solved the problem I was having by moving the bin folder that was in the flashremoting directory directly into my root web directory

I was just thinking that if you moved the bin directory then I think you would need to also add the following to your webconfig in the <system.web>:

<httpModules>
<add name="GatewayController" type="FlashGateway.Controller.GatewayController,flashgat eway" />
</httpModules>

Alternatively, instead of moving the bin you could set the Flashremoting directory as an application in IIS so it will look for the bin in this directory.

MrKicks

astec
01-03-2006, 03:03 PM
Oh! I did as you suggested and at least the _Status() handler is being fired now. Hopefully it'll make debugging easier.
Thank you!

astec
01-04-2006, 08:04 PM
I finally solved my problem. Turns out I was just being stupid :o. I changed the gateway url in the actionscript from the tutorial, but forgot to change the getService call. It was looking for my aspx file in a directory that didn't exist.

Thanks for all your help MrKicks!