Answered by:
Direct open web page

Question
-
User1829281058 posted
Hello,
I am developing a databased driven web app in Visual Studio 2019. I am able to see the page by clicking on run button IIS Express (Google Chrome) and in the browser it shows me http://localhost:49167/WebForm1.aspx. But, if I opens browser independently and says http://localhost:49167/WebForm1.aspx I gets :
This site can’t be reached
localhost refused to connect.
- Search Google for localhost 49167 WebForm1
ERR_CONNECTION_REFUSEDHow do I open the web page directly in browser.Sunday, October 27, 2019 10:27 AM
Answers
-
User1829281058 posted
Someone please tell me the alternatives of Visual Studio which have :
1.Language VB Support
2.Drag and Drop Feature of Controls.
So, that I :
Don't have MS Tech like Windowz, F*** IIS, Non-sense Browsers etc. I have uninstalled Windows from my Virtual Box software.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, October 28, 2019 10:16 AM
All replies
-
User475983607 posted
Sounds like the site is not running in IIS Express. IIS Express shuts down when you stop the debugger. Press ctrl-F5 to start IIS Express. Then you can close and open the browser. Another option is deploying the site to IIS on the local machine.
Sunday, October 27, 2019 12:04 PM -
User1829281058 posted
Thanks for your reply. You mentioned press ctrl-F5. Kindly elaborate more, I am not getting when and where I have to ctrl-F5 and what else I need to use / test the site in server machine as well as other clients too.Sunday, October 27, 2019 12:19 PM -
User475983607 posted
Thanks for your reply. You mentioned press ctrl-F5. Kindly elaborate more, I am not getting when and where I have to ctrl-F5 and what else I need to use / test the site in server machine as well as other clients too.Press ctrl-F5 while Visual Studio has the focus. This will start the application without the debugger. You can do the same from the Debug dropdown menu in Visual Studio.
Sunday, October 27, 2019 12:35 PM -
User1829281058 posted
Thanks again for your reply. My question is how do I run the app directly opening the browser by giving the app's URL.
Currently I have to run the app from VS.Sunday, October 27, 2019 1:00 PM -
User475983607 posted
Thanks again for your reply. My question is how do I run the app directly opening the browser by giving the app's URL.
Currently I have to run the app from VS.
And as explained above, host the application in IIS or use a hosting service.
See IIS support for how to configure IIS.
https://docs.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/site/application/
Sunday, October 27, 2019 1:06 PM -
User379720387 posted
That localhost address is tied to the debugger.
Once the debugger stops it disappears. At least that is the behavior in VS2019. Previously you can start the debugger, then stop it, and the site would still work.
Sunday, October 27, 2019 2:13 PM -
User1829281058 posted
Nothing worked.
I don't know how do I configure iis for this directly running the app other than through vs.Sunday, October 27, 2019 4:47 PM -
User379720387 posted
Open up a free Azure account and publish to Azure.
In 15 minutes your site is live.
You will be spending many hours mucking around with IIS.
Sunday, October 27, 2019 4:50 PM -
User1829281058 posted
I am not in hurry to live the site. It's really frustrating that I am able to run the app through vs but not directly through browser. And the above solution made me more mad.Sunday, October 27, 2019 5:08 PM -
User379720387 posted
No reason to get mad, just accept and move on.
By the way what do you want to achieve by running the app in a browser only?
Sunday, October 27, 2019 5:38 PM -
User1829281058 posted
What to accept and how?
I don't want to open the vs for running the app, just mention the app url and access it.Sunday, October 27, 2019 5:53 PM -
User475983607 posted
GirishSharma
I don't want to open the vs for running the app, just mention the app url and access it.As suggested three times now, create an IIS application on your machine. We can not see your machine and have no idea if you installed IIS which is a Windows feature. If you have IIS installed then simply follow the instruction in my previous thread. It is a step by step guide for building a IIS applcation to host your Web Forms app.
Then all you have to do is copy the web forms application to the virtual directory you configured when creating the IIS application.
https://helpdeskgeek.com/windows-10/install-and-setup-a-website-in-iis-on-windows-10/
http://doc.fireflymigration.com/switch-iis-express-to-local-iis.html
It's up to you to learn how to configure IIS. This is an ASP.NET forum and we can provide links but the rest is up to you.
Sunday, October 27, 2019 7:56 PM -
User61956409 posted
Hi GirishSharma,
You can refer to the following document to setup and configure IIS environment for hosting your ASP.NET web application.
With Regards,
Fei Han
Monday, October 28, 2019 1:07 AM -
User1829281058 posted
GirishSharma
I don't want to open the vs for running the app, just mention the app url and access it.As suggested three times now, create an IIS application on your machine. We can not see your machine and have no idea if you installed IIS which is a Windows feature. If you have IIS installed then simply follow the instruction in my previous thread. It is a step by step guide for building a IIS applcation to host your Web Forms app.
Then all you have to do is copy the web forms application to the virtual directory you configured when creating the IIS application.
https://helpdeskgeek.com/windows-10/install-and-setup-a-website-in-iis-on-windows-10/
http://doc.fireflymigration.com/switch-iis-express-to-local-iis.html
It's up to you to learn how to configure IIS. This is an ASP.NET forum and we can provide links but the rest is up to you.
I am running Windows 7 64 bit in Virtual environment. As you suggested, I followed your previous link Now I am getting HTTP Error 500.19 - Internal Server Error
Error Code 0x80070005 something permission related issue which is not addressed in that link. Generally, I don't link to use MS tech but its my unfortunate that I could not find VS kind open source linux based framework, so I have to use these F*** things.Monday, October 28, 2019 3:21 AM -
User1829281058 posted
Hi GirishSharma,
You can refer to the following document to setup and configure IIS environment for hosting your ASP.NET web application.
With Regards,
Fei Han
I think your link dont't work for windows 7, but still I tried to follow. I am at
To add an ASP.NET application by using the UI:
In the Connections pane, expand the Sites node.
While there is no "Sites" node. It is showing the server name, still I expanded it. In it i got Sites node. Ok. May be it is the "Sites" node which document is saying. Now,
"Right-click the site for which you want to create an application, and click Add Application."
Now, If I clicks Sites here, there are 3 options in context menu :
Add Web site
Refresh
Switch to Content View
There is no Add Application option.
So, rather than just mentiontion of the link, if you really wish to help the people, take one step ahead and see what actually is there because these are MS tech which world knows how "Good" are... LOL
Monday, October 28, 2019 3:37 AM -
User61956409 posted
Hi GirishSharma,
Now, If I clicks Sites here, there are 3 options in context menu :
Add Web site
Refresh
Switch to Content View
There is no Add Application option.
You can click "Add Website…" option, and configure Site name, Application pool, and Physical path etc, to create a Website first. Then if you'd like to add/create an Application, you can select the website you added, right click on it and select "Add Application..." option.
Besides, I recommend that you can check the following article to understand the concepts of Sites and Applications.
With Regards,
Fei Han
Monday, October 28, 2019 5:38 AM -
User1829281058 posted
Hi GirishSharma,
GirishSharma
Now, If I clicks Sites here, there are 3 options in context menu :
Add Web site
Refresh
Switch to Content View
There is no Add Application option.
You can click "Add Website…" option, and configure Site name, Application pool, and Physical path etc, to create a Website first. Then if you'd like to add/create an Application, you can select the website you added, right click on it and select "Add Application..." option.
Besides, I recommend that you can check the following article to understand the concepts of Sites and Applications.
With Regards,
Fei Han
I have done this :
1.Right Click Sites. Add Web Site. Site Name : test
2.Physical path : C:\Users\gk\source\repos\HGBEmp
3.Test Connection : Authentication Says Green Tick mark. Authorization - Some exclamation mark Cannot verify access to path (C:\users\gk\source...
4.Binding
Type - http IP Address : All Unasigned Port 80
5.Host Name : I don't know what to put here so I put abc.com and Clicked on Ok.
Now, I don't know what to mention in browser to access the site. When I says http://localhost/test it says 404
If I says http://localhost/test/Webform1.aspx :
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.Requested URL: /test/Webform1.aspx
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0
Now, I am frustrated and tired. Thinking to Uninstall Windowzs...
Monday, October 28, 2019 7:14 AM -
User61956409 posted
Hi GirishSharma,
Host Name : I don't know what to put here so I put abc.com and Clicked on OkI don't know what to mention in browser to access the site. When I says http://localhost/test it says 404Leave hostname empty, and try to browse http://localhost/Webform1.aspx.
With Regards,
Fei Han
Monday, October 28, 2019 9:18 AM -
User1829281058 posted
Someone please tell me the alternatives of Visual Studio which have :
1.Language VB Support
2.Drag and Drop Feature of Controls.
So, that I :
Don't have MS Tech like Windowz, F*** IIS, Non-sense Browsers etc. I have uninstalled Windows from my Virtual Box software.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, October 28, 2019 10:16 AM