I've installed Web AppBuilder and created an application using standard and custom widgets. It runs just fine from Web AppBuilder Developer.
When I deploy the application to the web server on a different computer, the application displays the map and the data on the map, but NONE of the widgets show up. Does not matter whether they are built-in widgets or custom widgets.
All the https calls for the widgets return a 403 forbidden error.
Solved! Go to Solution.
Additional info that might be relevant:
1) Stand-alone portal installation, not hooked to internet (and thus not hooked to ArcGIS.com or arcgisonline.com
2) Portal uses active directory single sign-on to connect to the portal.
3) sample call that fails with a 403: myserverUrl/widgets/Search/?1234567890123manifest.json&wab_dv=2.3
I have a manifest.json file in the that directory, but not a 1234567890123manifest.json.
4) I've just noticed that a lot of entries in the config.json file have references to webappbuilder\app#\ directories. I tried removing that portion of the directory path but no change in behavior was observed.
I suspect you may be deploying under IIS since you are using active directory. If the web site you have deployed to has Windows authentication enabled make sure all users have read permissions on the widgets folders and files (perhaps enable anonymous access to test calling one of the widget files).
Hope this helps
Changing permissions, etc, did not get rid of the 403 error. I enabled directory browsing and the 403 error went away for calls like this:
Of course, that doesn't help because the above call didn't return the widget, it returned an html doc listing the files in the directory...
I've been running my application in WAB in edit mode on my development machine. It works perfectly.
I realized I had never launched the application from WAB on my development machine, so I tried that. It has the same problem - the widgets don't show up, and for the same reason. (It's just that no IIS was involved to forbid directory browsing...)
However, an earlier, simpler map does launch correctly with the widgets showing.
I'm going to rebuild my application from scratch, and transfer in each custom widget one at a time until I figure out what's going on.
Any suggestions would be very welcome!