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

2065
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
13 Replies
timkahmann
Emerging Contributor
Robert,

This is all new to me, but I was able to apply the fix that was referenced in github. Some of things you wrote such as "Recompiling the Flex Viewer source does not fix the flex Viewer source that is contained in the App Builder program" now make sense to me! So thank you very much for your participation in the forums! I will place a few notes here so if someone else like me stumbles on this thread it may help them as well.

Rookie notes on how I fixed this:

1. you need flash builder to recompile the Web application, not the application builder.
2. You will have to modify the code in flash builder then "Export Release build"  and move it to your web servers "flexviewers" folder where your flex apps are being saved to by the app builder.
3. Go here (https://github.com/Esri/arcgis-viewer-flex/tree/master) and download the Zip file. Open the new project in Flash Builder
4. Go here to get the code and the instructions for the fix.. (https://github.com/Esri/arcgis-viewer-flex/commit/795cc047677ac3d547d35a963c0ceaed154d0030)
5. you are going to modify two files.( 1. src/widgets/Geoprocessing/GeoprocessingWidget.mxml ) (2.src/widgets/Geoprocessing/supportClasses/GPParamHandler.as) the modifications to the first will add an error because it can't find the function in the second. Adding the second modification will remove the function error.  

finally rebuild, move the build to your web server and open in the App builder to change.

tim
0 Kudos
ZacharyHart
Honored Contributor
Since there appears to be an issue with the GP widget and security, could someone please tell me if my issue is related to this?

http://forums.arcgis.com/threads/82625-Flex-Viewer-3.2-GP-Widget-upload-using-10.1.1-returns-token-r...
0 Kudos
BjornSvensson
Esri Regular Contributor
Since there appears to be an issue with the GP widget and security, could someone please tell me if my issue is related to this?
http://forums.arcgis.com/threads/82625-Flex-Viewer-3.2-GP-Widget-upload-using-10.1.1-returns-token-r...


No - you're forum post appears to be about using a secure GP task.
This forum post is about using an unsecured GP task, but still getting prompted for sign-in.
0 Kudos
JaredGrondin
Deactivated User
The behavior outlined in this forum is a known bug that has been logged with the development team.  The information regarding this bug can be found here (http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDkwMTky).

Regards,

Jared G.
0 Kudos