Select to view content in your preferred language

Starting the Flex Viewer 2.2 from Flex Builder

2423
4
12-20-2010 02:38 PM
ChrisOwen
Occasional Contributor
I created a new Flex Viewer 2.2 project and am trying to launch the application.  I am getting this error:
File not found: Inetpub/wwwroot/Flex%20Viewer/bin-debug/index.html

There is no index.html file in the src folder and of course, no file in the bin-debug folder.  The question is - shouldn't have this file been part of the zip file (flexviewer-2.2-src.zip)?

Thanks,
Chris
Tags (2)
0 Kudos
4 Replies
AdamRepsher
Frequent Contributor
Hi Chris,

I believe that the index.html is created from the index.mxml in the src/(default package) folder. It then gets deposited in the bin-debug folder when the project is built with Flash Builder.

What application is giving you the "file not found" error?

Do you have your project set to "Build Automatically"?  Then, are you attempting to run the bin-debug index.html through the "Run Index" command, and you have set up the "Edit Launch Configuration" within the Properties of your project?  Mine is just set up to look at: http://localhost/flexviewer/index.html.  I have virtual directory (named "flexviewer") set up in IIS to look at the bin-debug folder.

It kind of sounds like your project is not getting built.

--Adam
0 Kudos
ChrisOwen
Occasional Contributor
Hi Adam,
All my settings seem to be OK, I have other 1.X flex projects running with no issue.  I imported the 2.2 flex project from ESRI into the Flex Builder, the auto build is on and the project properties seem to be OK.  There is no index.html in the src folder, which I believe is part of the problem.

My goal is to migrate my ESRI 1.X flex projects to ESRI 2.X
Chris
0 Kudos
USFish___Wildlife_Service
Occasional Contributor
If you are using flex builder 3.3 as I haven't upgraded (paid the money) for flash builder 4, then just simply copy the flexviewer1.3/html-template/* files to your flexviewer2.2/html-template/ folder.  This gives you the needed index.template.html for the old flex builder to use to create the bin-debug/index.html.

Cheers,
Craig.
0 Kudos
USFish___Wildlife_Service
Occasional Contributor
or just copy the files from the flexviewer2.2/html-template source distribution (zip file) since the import deleted them

Cheers,
Craig.
0 Kudos