3 Replies Latest reply on Jan 20, 2011 3:56 AM by SunilAdobe

# Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

Hi,

I'm tryng to create a Flex Project, but got stuck with an error....

Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

ColdFusion root folder: C:\inetpub

Root URL: http://localfost:8500/

The project wants to connect to the ColdFusion 9

I have installed ColdFusion 9 on IIS

• ###### 1. Re: Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

There are 3 paths that are of interest when creating CF project

a. CF Root - This is the place where your CF is installed, typically c:\coldfusion9

b. Web root - Typically this would be c:\coldfusion9\wwwroot, but since you have it on IIS, it might be c:\Inetpub\www, basically the folder should have CFIDE in it

c. Root URL - Typically http://localhost: 8500

Looking at the error, looks like you have not given the CF root properly. The directory should have WEB-INF folder.

Thanks

-Sunil

• ###### 2. Re: Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

Thank you for your help! :)

http://www.anujgakhar.com/2010/06/08/cfflex-connectivity-in-flex-builder/

in the last comment, he writes:

for use ColdFusion root folder C: \ ColdFusion9
For Webroot use C: \ inetpub \ wwwroot
Root Url for use http://127.0.0.1

I set it according to the error and everything worked. Are these settings good?

• ###### 3. Re: Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

Yes, it looks good.