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.
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.
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.