Your web server is probably not set up to pass the cfc files to ColdFusion for processing. What web server software are you using?
> -----Original Message----- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 9:20 AM > To: CF-Talk > Subject: Remote access to CFC? Browser trying to download file instead of > "running" it. > > I'm having some problems with accessing a CFC via an AJAX request. It > works > locally, but on the server it gives me a "method not allowed" error. > > I'm using the JSMX library and on his suggestion I tried accessing the CFC > via an HTTP request. On my local computer, it launches the CFADMIN panel, > I > log in and presto, I get the self-documentation. On the remote server > however, the browser actually tries to DOWNLOAD the CFC file, and in fact > actually allowed me to load it in a text editor and view all of the > unparsed > CF code contained within. > > Does anyone know why this might be happening? Is there some setting in > cfadmin panel that might be causing this behavior? When run via a standard > function call, the cfc works just fine. > > Here's the code in question: > http://www.andyandjaime.com/jsmx/zipcode.html > > Here's the link to the cfc: > http://www.andyandjaime.com/jsmx/remote.cfc > > <!----------------//------ > andy matthews > web developer > certified advanced coldfusion programmer > ICGLink, Inc. > [EMAIL PROTECTED] > 615.370.1530 x737 > --------------//---------> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243721 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

