title: ColdFusion & Ajax: Error Invoking CFC
body: <p>I have tried multiple tutorials on this topic from Forta.com and yet run into the same error:
  <em>"Error invoking CFC/....(file path)../wgn.cfc: Internal Server Error [Enable 
  debugging by adding 'cfdebug to your URL parameters to see more info]"</em></p>
  
  <p>I am working on my local machine and testing as localhost.  Running WinXP Pro with sp3.  Using Coldfusion's web server.</p>
  
  <p>Both my .cfm and .cfc are in the same folder under the the webroot.  In my case:
  <em>c:\ColdFusion9\wwwroot\bridges(.cfm and .cfc here)</em>
  So, they are in a "bridges" folder under wwwroot.</p>
  
  <p>The code should generate some autosuggest functionality when the user types in the input box.  Instead, it just spits back the above error.</p>
  
  <p>This is my cfc named wgn.cfc:</p>
  
  <pre><code>&lt;cfcomponent output="false"&gt;
      &lt;cfset THIS.dsn="bridges"&gt;
        &lt;!--- Lookup used for auto suggest ---&gt;
        &lt;cffunction name="getWGN" access="remote" returntype="array"&gt;
          &lt;cfargument name="search" type="any" required="false" default=""&gt;
          &lt;!--- Define variables ---&gt;
          &lt;cfset var data=""&gt;
          &lt;cfset var result=ArrayNew(1)&gt;
          &lt;!--- Do search ---&gt;
          &lt;cfquery datasource="#THIS.dsn#" name="data"&gt;
          SELECT tblIDs.ID
          FROM tblIDs
          WHERE (tblIDs.IDType = 'xxx') AND (tblIDs.ID Like ('#ARGUMENTS.search#%'));
          &lt;/cfquery&gt;
          &lt;!--- Build result array ---&gt;
          &lt;cfloop query="data"&gt;
          &lt;cfset ArrayAppend(result, searchIDs)&gt;
          &lt;/cfloop&gt;
           &lt;!--- And return it ---&gt;
          &lt;cfreturn result&gt;
         &lt;/cffunction&gt;  
  &lt;/cfcomponent&gt;
  </code></pre>
  
  <p>And this is the relevant part of the form from my .cfm page:</p>
  
  <pre><code>    &lt;cfform .....&gt;
      &lt;cfinput name="searchIDs" type="text" autosuggest="cfc:wgn.getWGN({cfautosuggestvalue})"&gt;
      //......more to form, obviously
      &lt;/cfform&gt;
  </code></pre>