#application.app# is a structure and not a path to your cfc.  You need 
to have something like home.cfcdirectory.cfcname in you componenet 
invoke call.

Robert Polickoski wrote:
> All,
> 
> As part of the debugging of this, I added to the cfm file so it is 
> now:
> 
> <cfdump var="#APPLICATION#">
> <cfdump var="#CLIENT#">
> <cfdump var="#SESSION#">
> <cfif isDefined("SESSION.User")>
>       <cfinvoke component="#SESSION.User#" 
> method="DisplayUserHome"></cfinvoke>
> <cfelse>
>       <cfinvoke component="#APPLICATION.App#" 
> method="DisplayWelcome"></cfinvoke>
> </cfif>
> 
> The result can be found at 
> http://www.BuildACourse.com/NonSenseError.htm .  The actual files 
> are not there but on my test server.  But the dumps clearly show 
> that app is defined in APPLICATION and yet the error persists.  I 
> know it is probably a scope issue of some sort, but how do I go 
> about debugging?
> 
> Again, thank you in advance for your help.
> 
> Robert J. Polickoski
> Senior Programmer, ISRD Inc.
> (540) 842-6339
> [EMAIL PROTECTED]
> AIM - RobertJFP
> 
> 
> 
> ---------- Original Message ----------------------------------
> From: "Robert Polickoski" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date:  Tue, 10 Dec 2002 10:22:34 -0500
> 
> 
>>All,
>>
>>I am getting very confused and very frustrated.  Can somebody 
>>explain this error to me?
>>
>>Error Occurred While Processing Request  
>>Element APP is undefined in REQUEST.  
>>
>> 
>>The Error Occurred in C:\Program 
>>Files\Macromedia\CFusionMX\wwwroot\BuildACourse\User.cfc: line 342
>>
>>340 :         <cffunction name="DisplayUserHome" access="remote" 
>>output="true" displayname="Display User Home" hint="Displays the 
>>USer's home Page">
>>341 :                 <!-- This function Displays the User's home page --
>>
>>342 :                 <cfinvoke component="#APPLICATION.App#" 
>>method="DisplayHTMLPage">
>>343 :                         <cfinvokeargument name="SideMenuComponent" 
>>value="#THIS#">
>>344 :                         <cfinvokeargument name="SideMenuMethod" 
>>value="DisplayUserSideMenu">
>>
>>
>>
>>There is no call to the REQUEST collection.  Also, I have a cfm 
>>file with the following:
>>
>><cfif isDefined("SESSION.User")>
>>      <cfinvoke component="#SESSION.User#" 
>>method="DisplayUserHome"></cfinvoke>
>><cfelse>
>>      <cfinvoke component="#APPLICATION.App#" 
>>method="DisplayWelcome"></cfinvoke>
>></cfif>
>>
>>If I only have the second <cfinvoke>, it works fine.  When both 
>><cfinvokes> are there and the first is done, I get 
>>squirrelliness.  Sometimes it tells me elements of the CLIENT 
>>collection are not defined.  Sometimes it tells me CLIENT itself 
>>is undefined.  Am I just not understanding scope issues?  Help, 
>>Please!!
>>
>>Thank you in advance.  
>>
>>Robert J. Polickoski
>>Senior Programmer, ISRD Inc.
>>(540) 842-6339
>>[EMAIL PROTECTED]
>>AIM - RobertJFP 
>>
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to