application.cfc saving old datasource?
I had a site on one server that I am moving to a new server. I copied the files and database and created a new DSN. I ran a simple query on a test page prior to moving the site, it was a one page site at that time. I was able to connect to the database.
Now I have a relatively simple application file. I changed the name of the data souce in the file, but prior to that I made the mistake of opening a page on the site. The old data souce is A, the new data source is B. The application.cfc clearly (now) says B, but I get an error on every page saying it can't find A. I did a search of the entire site and nowhere in any file does it list data source A.
Here is the application file.
<cfcomponent output="false">
<!--- Name the application. --->
<cfset this.name="SomeName">
<!--- Turn on session management. --->
<cfset this.sessionManagement=true>
<cffunction name="onApplicationStart" output="false" returnType="void">
<!--- Any variables set here can be used by all pages --->
<cfset APPLICATION.DSN = "B">
<!--- Define the mail server --->
<cfset APPLICATION.MailServer = "MailServer">
<cfset APPLICATION.AdminMail = "EMailAddress">
<cfset APPLICATION.AdminMailPass = "PassWord">
</cffunction>
</cfcomponent>
Any thought on what I've done wrong?
Thank you!
