cfml error with appication.cfc page

Posted by tibin mathew on Stack Overflow See other posts from Stack Overflow or by tibin mathew
Published on 2010-04-15T04:16:04Z Indexed on 2010/04/15 4:23 UTC
Read the original article Hit count: 402

Filed under:

Hi,

I have some problem with my cfml website.

I have used the below code in application.cfc file to connect with the dsn.

But when ever i put this in my server, i'm getting error. i cant browse even a single test.cfm page.

Is there any mistake in that code , any syntax error or something like that, will it be some problem with the dsn

<cfset this.name = "0307de6.netsolhost.com">
<cfset this.sessionmanagement = true>
<cfset this.loginstorage="session">
<cfset this.sessiontimeout = CreateTimeSpan(0,0,30,0)>
<cfset this.applicationtimeout = CreateTimeSpan(2,0,0,0)>

<cffunction name="onApplicationStart">

    <cfscript>
        application.DSN             = "hirerodsn";
        application.dbUserName      = "myusr";
        application.dbPassword      = "myd69!";
    </cfscript>

</cffunction>

<cffunction name="onRequestStart">

    <cfscript>
        request.DSN = "hirerodsn";
        request.dbUserName = "myusr";
        request.dbPassword = "myd69!";
    </cfscript>

</cffunction>

please anyone help me

© Stack Overflow or respective owner

Related posts about cfml