Skip to main content
Known Participant
July 14, 2009
Question

Just trying to follow the CF8Intro docs

  • July 14, 2009
  • 1 reply
  • 1175 views

I followed the Introduction docs to setting up CF, Dreamweaver and the Self-included Server using this resource: http://www.adobe.com/education/instruction/teach/cfcurriculum.html

I downloaded the CFIntro.zip (which has the dbs and the .cfms, etc) and also downloaded the complete PDF.  I followed step by step and am stuck on Unit 1, step 23.  When I navigate to: http://localhost:8500/CF8intro/onYourOwnSolution/home/index.cfm I get the login screen.  When I enter ANY username and pw (even the right one) and hit Login, I get a CF error:

Datasource  CF8introArtGallery could not be found.

The  error occurred in  C:\ColdFusion8\wwwroot\CF8intro\onYourOwnSolution\cfc\Login.cfc: line  7
Called from C:\ColdFusion8\wwwroot\CF8intro\onYourOwnSolution\login.cfm: line 7
Called  from C:\ColdFusion8\wwwroot\CF8intro\onYourOwnSolution\Application.cfc: line  15
Called from C:\ColdFusion8\wwwroot\CF8intro\onYourOwnSolution\cfc\Login.cfc: line  7
Called from C:\ColdFusion8\wwwroot\CF8intro\onYourOwnSolution\login.cfm: line 7
Called  from C:\ColdFusion8\wwwroot\CF8intro\onYourOwnSolution\Application.cfc: line  15
5 :           <cfargument name="AdminPassword" type="string" required="yes">
6 :           
7 :           <cfquery name="qCheckLogin" datasource="#application.dsn#" result="resultInfo">
8 :           SELECT Email, AdminPassword
9 :           FROM GalleryAdmin

What is going wrong?  When I added the datasource, it said connection successful, etc.

Thanks to anyone who can help,

Mike

This topic has been closed for replies.

1 reply

ilssac
Inspiring
July 14, 2009

When you set it up did you name it "CF8introArtGallery"?  Spelling counts, make sure there was not a typo.

depth10Author
Known Participant
July 14, 2009

Yes, I named it CF8introArtGallerySolution.  Here is a screenshot of the Data Source page.  I just clicked "Verify" and the "Submit" and it said added successfully (as it did the first time).

depth10Author
Known Participant
July 14, 2009

WOW, so I went back and looked at the error, and it was referencing CF8introArtGallery, yet the Adobe PDF Intro doc said to use CF8introArtGallerySolution as the Data Source Name.  I changed it to just CF8introArtGallery and now it works.  Ooops Adobe!  You're making newbies pull their hair out for nothing!