POST
|
Hello all! Just wanted to update this issue! After working with Esri Support, we were able to come up with a solution. The security token cookie that AGOL creates when you log in manually was not being passed from the proxy service to the app and the print widget needs to pass that token (from the cookie) to AGOL in order for it to access the layers to generate the map. The widget did not have the token (from the cookie) to pass to the Esri Print service, therefore, the Esri Print service did not have access to our AGOL hosted layers. The solution that Esri Support suggested was to create our own print service utilizing Server for ArcGIS. Upon testing, this seemed to work. Thanks! Chris
... View more
05-18-2016
08:55 AM
|
1
|
0
|
4322
|
POST
|
Hello all! Just to update, after working with Esri Technical Support, we were able to figure out the cause of the problem. I was using the same web server to host both the Web AppBuilder app and the proxy service available on GitHub. They had the same URL with the exception of the port number. Ex: App URL: https://mywebserver.com:443/app/ Proxy URL: https://mywebserver.com:444/DotNet/proxy.ashx I found out that, even though they are hosted using the same web server, because the port numbers are different, the browser was treating them as different origins, thus, causing my CORS errors. My Solution was to remove the proxy site completely from IIS. Then I added the proxy to the app's site as a virtual directory. Now that they are both pulling from the same URL with the same port, there are no more CORS errors! (I have attached an image of the app's directories in IIS) This may be standard knowledge, but to anyone else new to the web development game, I thought this may help. Thank you, Chris Schreiber
... View more
05-18-2016
08:47 AM
|
1
|
0
|
2469
|
POST
|
Robert, Thank you! I was able to locate and change the threshold. Chris
... View more
05-05-2016
12:24 PM
|
0
|
0
|
865
|
POST
|
Thanks! I am using the Developer edition. I cannot find where the 600 pixel threshold is defined. Chris
... View more
05-05-2016
11:58 AM
|
0
|
1
|
865
|
POST
|
Is there anyway to decrease the threshold that must be crossed that enables mobile mode? I know that it is 600 pixels by default. Thanks!
... View more
05-05-2016
07:08 AM
|
0
|
0
|
865
|
POST
|
Just curious if Esri removed it, or I messed up something. Thanks!
... View more
04-18-2016
11:25 AM
|
0
|
4
|
2285
|
POST
|
Hello, Is your site http or https? We had issues with the USGS Map in Web AppBuilder because it is using an http link, and since our site is https, it wouldn't load. Here is the link to the USGS National Map: USGSTopo (MapServer) I hope this helps! Chris
... View more
04-18-2016
11:21 AM
|
0
|
0
|
228
|
POST
|
Hello all! I have a Web AppBuilder app that contains three feature layers that are hosted on ArcGIS Online. When editing, Internet Explorer and Edge will cache the feature layer so whenever I zoom, it is not there; or if I make changes to the layer, they do not reflect. I do not have this problem with Chrome, Firefox, or Opera. How do I disable this caching. For reference, IE is the latest version. Thanks!
... View more
04-05-2016
12:30 PM
|
0
|
0
|
3442
|
POST
|
Hello all! I have a app that I created using Web AppBuilder (WAB) Developer Edition. We are hosting the app on our web server. The map and all the layers are hosted on ArcGIS Online (AGOL). I have configured the Esri Proxy service that is available on GitHub in order load the app without prompting for AGOL credentials. The app that I created has the "out of the box" print widget enabled. When the proxy is disabled, and the user must login manually when the app loads, the print widget works fine. When the proxy is enabled for the app, the print widget does not work. ==================================================================================== Here is the error I get on Fiddler web debugger: {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map Task Job ID: ID12345ABCDE : Layer \"Road Detours\": Failed to create layer from service at https://our_agol_server/XtlHFoXqFDQ/arcgis/rest/services/Training_Road_Closures/FeatureServer/2.\nLayer \"Road Closures\": Failed to create layer from service at https://our_agol_server/XtlHFoXqFDQ/arcgis/rest/services/Training_Road_Closures/FeatureServer/1.\nLayer \"Road Blocks\": Failed to create layer from service at https://our_agol_server/XtlHFoXqFDQ/arcgis/rest/services/Training_Road_Closures/FeatureServer/0.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}} ===================================================================================== These three layers (Road Closures, Detours, and Blocks) are the only layers on the map that need to utilize the proxy. It would seem that the "out of the box" proxy widget is not "proxy aware". Is there anyone who has had a similar situation and found a solution or work around? Thanks in advance! Chris
... View more
03-31-2016
02:48 PM
|
1
|
10
|
13241
|
POST
|
Thanks for the assistance! I opened up Fiddler and found that it was failing for another reason. I had changed a few of the fields in the hosted layer. I deleted the old fields by opening the attribute table and deleting them, then I selected "Add field" from the drop down menu. Even though the fields were named the same as the old ones, it caused the editor widget in the web map to fail. In Fiddler, I kept seeing "Invalid Query" errors. To fix the issue, I deleted the entire feature layer from ArcGIS Online and published a new one from ArcMap with the updated fields. Thank you, I hope this can help! Chris
... View more
03-25-2016
11:58 AM
|
2
|
0
|
3485
|
POST
|
Hello all! I am working on a road closure app that will be constructed using the Web AppBuilder (Developer Edition). Because it will be embedded into another website we are going to host it locally and utilize the Esri proxy (from GitHub) to bypass the need for credentials. I am having issues when trying to access hosted layers from ArcGIS Online. I needed to add the "Access-Control-Allow-Origin" to the page header to access our organization's ArcGIS Online Account for the app to work. When I add this, the browser then comes back with the following error: "The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'www.mysite.com' is therefore not allowed access." I have checked both the app's page and the proxy's page on IIS and I cannot locate a second value. Where do I need to go to find this second value? Thank you! P.S. I am new to CORS, so I am learning as I go.
... View more
03-11-2016
12:06 PM
|
0
|
1
|
7484
|
POST
|
I closed and then reopened ArcMap and then it worked. I am using 10.2.2. No Idea what changed.
... View more
03-02-2016
12:26 PM
|
1
|
1
|
942
|
POST
|
Hello, Is there anyway to delay the JavaScript credential prompt to display when the layer that requires a login is activated? I have a js map and I have multiple layers on it. Only 2 out of the 6 total layers are secured (they are stored on our organization's AGOL account). Like normal, when the map opens, it asks for credentials for AGOL. Is there a way to only have the credential request box display only when the AGOL layers are selected in the Layer list widget? I am still pretty new to js, so I apologize. Thank you!
... View more
01-14-2016
07:14 AM
|
0
|
1
|
1754
|
Title | Kudos | Posted |
---|---|---|
1 | 06-10-2016 07:23 AM | |
1 | 05-24-2021 02:27 PM | |
1 | 11-02-2016 02:19 PM | |
1 | 05-18-2016 08:47 AM | |
1 | 01-04-2017 06:06 AM |
Online Status |
Offline
|
Date Last Visited |
06-30-2022
11:30 AM
|