This content has been marked as final. Show 7 replies
Sounds like its an issue with the Internet Server on your host macine not recognizing the CFC file type correctly. Possibly an incorrect ISAPI mapping. I would recommend contacting your hosting provider and alerting them to this issue.
My website is on a shared hosting system and if I type the url of my cfc's into the browser all of the text that is not inside coldfusion tags (all of my sql statements in this case) gets displayed in the browser.
Not good, Mr. Provider, no, sir.
... might be a coding problem or something that some hosting providers disable?
Certainly not a coding problem. Possibly a mistake in configuring the web server for Coldfusion's file types.
If you have this type of configuration problem, would you still be able to instantiate cfcs within your application using createObject()?
Had similar wonderings, too.
Thanks for all of your comments so far.
Yes I can instantiate the component using this code
<cfobject component="cdwg" name="myComponent">
<cfset cfcRef = "#myComponent#">
Is this what you were thinking of?
My hosting provider responded to me and said the cfc files won't work because
"won't work in our hybrid environment because Apache server doesn't know where to redirect .cfc file"
Does anyone know of an alternative way to redirect people away from cfc files without using the administrator? I do not have access to configure the web server.
> Is this what you were thinking of?
"Apache server doesn't know where to redirect .cfc file" makes little sense to me. All your provider has to do is configure Apache and Coldfusion properly. Ask your provider to go through the following steps.
Configuring Apache for Coldfusion MX on Windows
Configuring Apache for Coldfusion MX on Unix
Have you ruled out the combination MX 6.1 and Apache 2.2? Coldfusion MX 6.1 does not support Apache 2.2. Still, there are ways. Here's one way to make MX 6.1 and Apache 2.2 work together.