Running the Geoprocessing Widget in Flexviewer 3.2 - Prompting for sign-in access

1913
13
Jump to solution
04-02-2013 01:29 PM
BrettElliot
Deactivated User
Hi all,

I've created a new geoprocessing service that I would like to use from the Flexviewer 3.2 application. 

When I try to open the geoprocessing widget within flexviewer, the Sign-in window pops up saying "Please sign in to access Testing/XYTool2 on ****server.com".  I put in my username and password, but the window just pops up again, and the widget doesn't load.

The geoprocessing service runs properly when I run it from ArcServer through ArcMap, and also when I run it through the REST services directory using the "Submit Job" command.  In ArcGIS Server Manager, I have the geoprocessing service security set to public.  We have SSL enabled on our ArcServer site.

Any insight into this is appreciated.

Cheers,

Brett
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Guys,

   There is a fix already if you are using the source code of the Viewer.

https://github.com/Esri/arcgis-viewer-flex/commit/795cc047677ac3d547d35a963c0ceaed154d0030

View solution in original post

0 Kudos
13 Replies
Wee_LikLau
Deactivated User
Hi Brett,

I got the same annoying authentication dialogue as well. I'm pretty sure my services are not secured.
It's funny that we can by-pass the login by clicking "cancel" button.

Hope ESRI Flex team can fix on this.

Thanks for creating this thread,

Lau
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   There is a fix already if you are using the source code of the Viewer.

https://github.com/Esri/arcgis-viewer-flex/commit/795cc047677ac3d547d35a963c0ceaed154d0030
0 Kudos
BrettElliot
Deactivated User
Guys,

   There is a fix already if you are using the source code of the Viewer.

https://github.com/Esri/arcgis-viewer-flex/commit/795cc047677ac3d547d35a963c0ceaed154d0030



I updated the source code and this fixes the problem.

Thanks for pointing this out Rob.

Cheers,
0 Kudos
timkahmann
Emerging Contributor
Hello,

I am having this issue and new to flex. I do have Flex builder but have used the API. In the application source folder there are no .mxml files (inetpub/wwwroot/flexviewers/myapp/widgets).

My question is what does "if you are using the source code of the Viewer."  mean and how do I find it?

thanks..
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tim,

   If you do not have Flash Builder then you will have to wait for esri to release the fix in the next version.
0 Kudos
timkahmann
Emerging Contributor
Tim,

   If you do not have Flash Builder then you will have to wait for esri to release the fix in the next version.


Robert

thanks for the reply and sorry, I have a typo. I do have Flash Builder and was able to download the source code from the github in the above post. I opened the project in FlashBuilder and was able to see find the files. They appear to be corrected. Sorry for the rookie questions..
1. do i have to rebuild the project and then reinstall the app builder on the server?
2. Is there a component of the app builder i can replace and not reinstall the whole thing?

thanks..

Tim
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tim,

   Recompiling the Flex Viewer source does not fix the flex Viewer source that is contained in the App Builder program. You really need to wait for App Builder 3.3.
0 Kudos
timkahmann
Emerging Contributor
Robert,

I wish I could wait. You see there is a flaw in ArcServer if you use the basemaps(Web-Mercator) provided by ESRI, and "force print to scale" the map documents wont print to scale. they look like they do until you actually print the document and measure it (like an engineer would).  And its off by about 30%, no small matter when a 200ft wide runway measures to 260 ft! I went through two weeks of this with ESRI support to have it turn into a bug with no fix.

So at ESRI's suggestion I used a local image for my basemap (because you need one) which you couldn't do in 3.1 because of a bug. So i upgrade to 3.2 and now there is this bug and my clients are not happy about having to click through it especially after the first incident. 

I realize none of this is your problem and thanks for helping,  but i cannot wait for ESRI to fix it. I need to learn how to get past it. I found this and was hopeful.   You fixed it, that means it can be fixed and someone else applied the fix successfully by "I updated the source code and this fixes the problem." I can see the changes in the code from the suggestion in the Flash Builder project. I just don't know what do with it now that it looks to be correct.

I don't expect anyone to "do it for me", I will work at it I just don't know where to start.

Tim
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tim,

   So once you have the code changes in place then in Flash Builder you go to the project menu and choose "Export Release Build..." then you copy all the contents of the bin-release folder over into you web servers folder where you have your Flex Viewer web site.
0 Kudos