I recieve the following error message:
An exception occurred when executing a Com method.
The cause of this exception was that: coldfusion.runtime.NeoPageContext$InvalidVariableNameException: The string "e:/Inetpub/Intranet/WebContent/Compare/NewFile.htm" is not a valid ColdFusion variable name..
The related code is:
<cfset strOldFile = "e:/Inetpub/Intranet/WebContent/Compare/OldFile.htm">
<cfset strNewFile = "e:/Inetpub/Intranet/WebContent/Compare/NewFile.htm">
<cfset strCompFileOnly = FileComp & ".doc">
<cfset strCompFile = "e:/Inetpub/Intranet/WebContent/Compare/" & strCompFileOnly>
<cfset strRTN = objCompare.CompareTwoFiles(strNewFile, strOldFile, strCompFile)>
This worked in the past but now that I have upgraded to ColdFusion MX, it does not. I do not understand why the error message refers to an invalided variable name when it is the value that contains the special characters. Does anyone know why I am getting this error?
Allan Jagos
Web Developer
Robinson & Cole LLP
An exception occurred when executing a Com method.
The cause of this exception was that: coldfusion.runtime.NeoPageContext$InvalidVariableNameException: The string "e:/Inetpub/Intranet/WebContent/Compare/NewFile.htm" is not a valid ColdFusion variable name..
The related code is:
<cfset strOldFile = "e:/Inetpub/Intranet/WebContent/Compare/OldFile.htm">
<cfset strNewFile = "e:/Inetpub/Intranet/WebContent/Compare/NewFile.htm">
<cfset strCompFileOnly = FileComp & ".doc">
<cfset strCompFile = "e:/Inetpub/Intranet/WebContent/Compare/" & strCompFileOnly>
<cfset strRTN = objCompare.CompareTwoFiles(strNewFile, strOldFile, strCompFile)>
This worked in the past but now that I have upgraded to ColdFusion MX, it does not. I do not understand why the error message refers to an invalided variable name when it is the value that contains the special characters. Does anyone know why I am getting this error?
Allan Jagos
Web Developer
Robinson & Cole LLP