Select to view content in your preferred language

Issues deploying an application

1921
11
Jump to solution
08-08-2012 06:39 AM
JohnWall
Regular Contributor
I am having two issues deploying an application that I have created. First, I am having issues writing to the wwwroot folder even though I have permissions. Do I need to provide Flash Builder 4.6 with permissions?

Second, I have attempted to navigate around the first issue by exporting to one folder and then copying into the wwwroot folder. Still, this does not seem to work. Thus, I am unsure how to get my application properly deployed.

ArcServer and IIS 7.0 are on the same server.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
John,

  So my suggestion is setting up your projects build path much differently (more basic IIS stuff then Flex stuff).
Your Output folder will be:

bin-debug

Your Output folder URL will be:

http://localhost/Flex

Then in IIS your right click on Default Web Site and choose Add Application, for the alias use Flex (or what ever as long as you match the last steps path http://localhost/whatever to this alias), the physical path will be (something like) C:\Flash Builder 4.6\yourappsname\bin-debug or C:\users\{yourusername}\Adobe Flash Builder 4.6\yourappsname\bin-debug.

View solution in original post

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus
John,

   Best thing to do is not attempt to write to the wwwroot folder at all, and you accomplish this by setting up a virtual directory that points to a folder on the file system that you have permission to write to with out running Flash Builder as the administrator. Windows 7 does not allow writing to the wwwroot folder unless the application has elevated privileges (meaning you right click the program and choose run as administrator).

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
JohnWall
Regular Contributor
Hi Robert,
Thanks for your response. I was able to export to the wwwroot folder after checking my my permissions. However, I am still having issues accessing the application. I can access it just fine when I click on the HTML document giving this path: file:///C:/inetpub/wwwroot/flex/gis_test.html

But, then I try to change that to the web address: http://130.83.81.23/flex/gis_test.html

I get the following information returned:
[INDENT]Requested URL: http://130.83.81.23:80/flex/gis_test.html[/INDENT]
[INDENT]Physical Path: C:\Webseiten\Flex\gis_test.html[/INDENT]

Sorry, I am very new to deploying applications using the Flex API.
Thanks again,
John

P.S.
My Output Folder within Flex Builder is 130.83.81.23\flex\bin-debug while my Output folder URL is http://130.83.81.23/flex/
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

  So my suggestion is setting up your projects build path much differently (more basic IIS stuff then Flex stuff).
Your Output folder will be:

bin-debug

Your Output folder URL will be:

http://localhost/Flex

Then in IIS your right click on Default Web Site and choose Add Application, for the alias use Flex (or what ever as long as you match the last steps path http://localhost/whatever to this alias), the physical path will be (something like) C:\Flash Builder 4.6\yourappsname\bin-debug or C:\users\{yourusername}\Adobe Flash Builder 4.6\yourappsname\bin-debug.
0 Kudos
JohnWall
Regular Contributor
Okay, I changed to bin-debug and http://130.83.81.23/flex (or what it suppose to stay localhost?). I opened up IIS 7 and created a new web page pointing to C:\Users\<name>\Adobe Flash Builder 4.6\gis_test\bin-debug and named that page forschung. But, when I go to  http://130.83.81.23/flex or  http://130.83.81.23/forschung I get a 500 - Internal Server error. What am I missing?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

  
I changed to bin-debug and http://130.83.81.23/flex


Well it should have been http://localhost/forschung (I don't normally use localhost or an ip address, I just use the machine name).

Your Output folder URL will be:

http://machinename(i.e. gislap134)/forschung

created a new web page
I assume you mean you followed my instructions here:

Then in IIS your right click on Default Web Site and choose Add Application, for the alias use forschung
The physical path is C:\Users\<name>\Adobe Flash Builder 4.6\gis_test\bin-debug

Then in Flash Builder you can click the little green play button on the main toolbar at the top and it should open a browser to:
http://machinename(i.e. gislap134)/forschung/gis_test.html
0 Kudos
JohnWall
Regular Contributor

http://machinename(i.e. gislap134)/forschung


I now set it to http://loewe/forschung


I assume you mean you followed my instructions here:

Then in IIS your right click on Default Web Site and choose Add Application, for the alias use forschung
The physical path is C:\Users\<name>\Adobe Flash Builder 4.6\gis_test\bin-debug

Then in Flash Builder you can click the little green play button on the main toolbar at the top and it should open a browser to:
http://machinename(i.e. gislap134)/forschung/gis_test.html


Now when I press the green play button I view http://loewe/forschung/gis_test.html But, I can only view it locally it seems and even then FireFox gives me errors and does not display the dynamic layers.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   If you are still using the ip address in the main config.xml file for your map services than you need to change those to use the machine name as well, or just go back to using the IP address instead of machine name (it is just my preference to use machine names as they are easier to type than IP addresses).
0 Kudos
JohnWall
Regular Contributor
John,

   If you are still using the ip address in the main config.xml file for your map services than you need to change those to use the machine name as well, or just go back to using the IP address instead of machine name (it is just my preference to use machine names as they are easier to type than IP addresses).


Thanks! That got it working in FireFox locally, but I cannot access it from other computers. When attempting to access it from other computers I get a 404 Error. The address is http://loewe/forschung/gis_test.html
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   Now that is a Windows Firewall issue you have to add an inbound exception. I really don't want to provide guidance here though as this is best handled by your IT Dept.
0 Kudos