This short article shows you how to fix “This page can’t be displayed” error when click on App for SharePoint On-Premise after deploy from Visual Studio.
I created another website IIS Default Web Site. I Binding the port to 8081. I created a Wen Application for example, here is SharePointApp21Web.
Now I right click my Web Project, SharePointApp21Web then choose Properties.
Make sure you choose Local IIS and not IIS Express because by the default behavior you IIS Express will stop when you stop debugging in Visual Studio.
I then pointed to the Web Application that I created earlier on, http://localhost:8081/SharePointApp21Web.
Now when you click on the App for SharePoint in SharePoint after you stopped debugging and you App will still be running. This article only apply to On-Premise SharePoint 2013. SharePoint Online I am yet to try.