1 Reply Latest reply on Oct 7, 2009 9:28 AM by FALCONSEYE_

    Strange error : Could not find the included template /flex2gateway.


      I am working on a flex application. I got four comboboxes which are using cfc methods in order to get their values. Everything was working locally. On the dev server, I get this error:


      Could not find the included template /flex2gateway.


      When I googled this problem, I found several things:

      1. http://server/flex2gateway does bring a blank page up

      2. flash remoting is checked in cf admin

      3. i created a test.cfm and called the cfc/methods without any errors. the test.cfm is located where my .mxml file is.


      So, I am not sure what else to do at this point. Any suggestions ?

      thanks in advance.

        • 1. Re: Strange error : Could not find the included template /flex2gateway.
          FALCONSEYE_ Level 1

          This is the solution:


          <!--- Run before the request is processed --->
              <cffunction name="onRequestStart" returnType="boolean" output="false">
                  <cfargument name="thePage" type="string" required="true">
                  <!--- Me: 7-9-2009  --->
                  <!--- onRequest breaks all flash remoting and remote CFC calls! --->
                  <!--- added a work around ---->
                  <cfif listlast(arguments.thePage,".") is "cfc" or findNoCase("/flex2gateway",arguments.thePage) gt 0>
                      <cfset StructDelete(this, "onRequest") />
                      <cfset StructDelete(variables,"onRequest")/>


                  <cfreturn true>