Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / January 2005



Tip: Looking for answers? Try searching our database.

flash remoting - asp.net code behind

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jaxon02 - 11 Nov 2004 17:20 GMT
I have a small flash program that returns data from ASP.NET.
It works great when using a script within my aspx page... But when I try to
use a codebehind page flash debugger returns "Could not load type
'flashDev.eisDev'" (flashDev is the project folder, eisDev is the classname)

I have tried many tutorials... none work!

What is the problem???
proxmaster - 14 Nov 2004 01:38 GMT
Does the aspx page work correctly in a browser with no errors? it would appear
to be a problems with the reference between your .aspx page and your .cs. What
IDE are you using for ASP.NET? I use codebehind and flash remoting all the time
and it can be a little tricky to get it working sometimes.

Can you provide the  codebehind code that is returning the data back to Flash?
ko316 - 27 Jan 2005 10:08 GMT
It apologizes because of poor English.

I am encountering the same problem that Mr.jaxon02 has, too.
I am creating the Flash program with FlashRemoting and ASP.NET.
When I try to use a codebehind page in ASP.NET, e.g. foobar.aspx and
foobar.aspx.cs, Flash NetConnection Debuger returns follows,

---------------------------------------------
DebugId: 0
EventType: "AmfStatusCall"
MethodName: "/1/onStatus"
MovieURL: ".....foobar.swf"
Protocol: "http"
ResponseURI: (undefined)
Source: "Server"
Time: 1106815583031
Date (object #1)
....."Thu Jan 27 17:46:23 GMT+0900 2005"
Parameters (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Could not load type 'flashSearch01.Search01'"
.....details: "   at
FlashGateway.Delegates.ASPAdapter.InvokeService(ActionContext action)
   at FlashGateway.Delegates.ServiceCommander.InvokeAdapter(ActionContext
flashContext)
   at FlashGateway.Delegates.ServiceFilter.preInvoke(ActionContext
flashContext)"
.....level: "error"
.....type: "System.Web.HttpException"
---------------------------------------------

The aspx code is follows,

---------------------------------------------
<%@ Page language="c#" Debug="true" Codebehind="flashSearch01.aspx.cs"
AutoEventWireup="false" Inherits="flashSearch01.Search01" %>
<%@ Register TagPrefix="Macromedia" Namespace="FlashGateway"
Assembly="flashgateway" %>
<Macromedia:Flash ID="Flash" runat="server" />
---------------------------------------------

When I execute the aspx page through a web browser, no errors. (Though it is
natural)Nothing is desplayed.
Anything is hardly being written in the .aspx.cs file.

If anyone knows the solution, please tell me.
ko316 - 27 Jan 2005 15:17 GMT
Sorry, I solved for oneself.
I mistaked about how to use of the function "setDefaultGatewayUrl()".
I copied the file "flashgateway.aspx" to my folder, and assigned it argument
of "setDefaultGatewayUrl()",
e.g. http://localhost/MyFolder/flashgateway.aspx, it came good.

Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.