I am trying to deploy a SharePoint Hosted App on my development machine by packaging it and uploading in app catalog. When the app is deployed directly using visual studio,it works fine. But when I upload the app using app catalog and add it to a site,clicking the app gives message:
"Page cannot be displayed"
Any idea why this is happening? App Domain and App catalog URL is configured properly.
Update:
While deploying using app catalog, entries are not added to host file.
Manually adding the app domain entries resolves the issue.
Is there any permanent fix for this so that i don't have to manually add the entries?