Select to view content in your preferred language

HTTP Error 404. The requested resource is not found

11942
16
Jump to solution
11-19-2015 06:08 AM
KCCGIS_Team
Emerging Contributor

Hi,

I have downloaded the application code from web appbuilder developer version 1.2  and  hosted in my local IIS Server.

But when I try to run the application with this url “http://localhost/simple/ “ it start fine later it give the below shown error

Can anyone suggest me how can I fix this issue.

Thanks

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

KCC GIS Team,

   Does your Organizations Portal configuration security settings have "Allow access to the organization through HTTPS only" checked?

View solution in original post

16 Replies
RobertScheitlin__GISP
MVP Emeritus

KCC GIS Team,

  • Is your server setup to run SSL (do you need SSL)?
  • Why are you using https and not HTTP?
  • Try using your computers name and not localhost.
  • Is the App in a virtual directory called simple (is the index.html directly under that path)?
KCCGIS_Team
Emerging Contributor

Hi Robert,

  1. > This the ssl present in my system

Capture.PNG
Untitled.png

2.> I have used http but it has automatically changed to https

3.> yes I have used computer name as well

4.> yes the app is in virtual directory

can you let me know what else I can try.

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

KCC GIS Team,

  Open the config.json for that app and see if the portalURL is set to https or http. If your server does not have a SSL certificate then you can not use https and you need to change the urls to http.

Do you have WAB Dev and have downloaded this app from it and are attempting to deploy the app to your web server?

When you registered your WAB Dev on AGOL

Get started—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers

Did you use an http or https address?

KCCGIS_Team
Emerging Contributor

Hi Robert,

checked config.json file it has https so i have changed to http.

yes I have WAB Dev and have downloaded this app from it and are attempting to deploy the app to your web serve

When I registered my WAB Dev on AGOL I provided http address.

I am still facing the same issue.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

KCC GIS Team,

What about all the other urls in the config.json?

Did you change then to use http?

Have you tested that your IIS is working properly?

Can you access another app on your IIS?

Does your WAB Dev come up with a http or https url when you launch it?

KCCGIS_Team
Emerging Contributor

Hi Robert,

> All the urls in the config.json file were having HTTPS On your instruction I have changed them to http

> yes can access other non WAB applications on my IIS

> When I launch WAB Dev it comes up with HTTPS url

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

KCC GIS Team,

   So the root of the issue is that WAB Dev is installed currently to use https and you need http for your web server.  I have seen this before and I think it is due to the url used when you are asked to specify the url to your portal. Check the [install dir]/server/signininfo.json and see if it is set to https.

KCCGIS_Team
Emerging Contributor

Hi Robort,

Your right!!!

signininfo.json is having HTTPS.

So we just need to change it and go ahead ?

RobertScheitlin__GISP
MVP Emeritus

KCC GIS Team,

   I would change that and then open the app in WAB Dev change something small like the apps name so that you will be able to hit the save button (your can change the name back after you save) and then re-export the app and try again.