I am working on the gettingStarted section of Coldfusion
& have setup coldfusion 8.0.1 server & dreamweaver CS4 on
windows Vista.
I have successfully run the art gallery application (so my
local & test env are setup along with the dsn "gettingstarted")
but I am having issues in running the "Community application" which
is detailed at the following link.
http://www.adobe.com/examples/cfgettingstarted/experience/index_content.cfm
I have verified that the Sponsor component exists in a
components folder under another folder extensions, which is
directly under the site root. I have also verified that I am able
to connect to the DSN and get the data from the Sponsor table.
sponsor.cfc contains the following function/ query
----------------------------------------------------------------------------------
<cffunction name="getRandomAd" access="remote"
output="false" returntype="string" hint="Returns a random swf or ad
image.">
<cfargument name="fileType" required="true" type="string"
hint=".swf, .jpg or .gif" />
<cfargument name="dsn" required="true" type="string"
/>
<cfset var ad="">
<cfset var getAd="">
<cfset var num=0>
<CFQUERY NAME="getAd" DATASOURCE="#arguments.dsn#">
SELECT SPONSORAD
FROM #TABLES.SPONSORS#
WHERE SPONSORAD LIKE '%#arguments.fileType#'
</CFQUERY>
-------------------------------------------------------------------------------------------------------------
application.cfc is directly under the site root and error is
referred to line #59
============================================================
Error Occurred While Processing Request
Could not find the ColdFusion Component or Interface Sponsor.
Ensure that the name is correct and that the component or
interface exists.
The error occurred in
C:\ColdFusion8\wwwroot\cf8gettingstarted\community\Application.cfc:
line 59
57 : <cfinvoke component="#request.cfcPathSponsor#"
method="getRandomAd" returnvariable="application.banner">
58 : <cfinvokeargument name="dsn"
value="#request.dsn#">
59 : <cfinvokeargument name="fileType" value=".swf">
60 : </cfinvoke>
61 : </cfif>
===========================================================================
I am a newbie and would appreciate if somebody can help me.
Thank You/