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 :
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.
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.
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.
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.
Click on "Mark as Answer" if my answers help you along.
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.
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.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
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.
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.
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
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.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
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.
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...
Host Name : I don't know what to put here so I put abc.com and Clicked on Ok
GirishSharma
I don't know what to mention in browser to access the site. When I says http://localhost/test it says 404
Leave hostname empty, and try to browse http://localhost/Webform1.aspx.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
37 Posts
Direct open web page
Oct 27, 2019 10:27 AM|GirishSharma|LINK
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 :
<div id="main-content" jstcache="0"> <div id="main-message" jstcache="0">This site can’t be reached
localhost refused to connect.
<div id="error-information-popup-container" jstcache="0"> <div id="error-information-popup" jstcache="0"> <div id="error-information-popup-box" jstcache="0"> <div id="error-information-popup-content" jstcache="0"> <div id="suggestions-list" jsdisplay="(suggestionsSummaryList && suggestionsSummaryList.length)" jstcache="17">All-Star
53681 Points
24024 Posts
Re: Direct open web page
Oct 27, 2019 12:04 PM|mgebhard|LINK
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.
None
0 Points
37 Posts
Re: Direct open web page
Oct 27, 2019 12:19 PM|GirishSharma|LINK
All-Star
53681 Points
24024 Posts
Re: Direct open web page
Oct 27, 2019 12:35 PM|mgebhard|LINK
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.
None
0 Points
37 Posts
Re: Direct open web page
Oct 27, 2019 01:00 PM|GirishSharma|LINK
Currently I have to run the app from VS.
All-Star
53681 Points
24024 Posts
Re: Direct open web page
Oct 27, 2019 01:06 PM|mgebhard|LINK
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/
Contributor
2619 Points
2752 Posts
Re: Direct open web page
Oct 27, 2019 02:13 PM|wavemaster|LINK
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.
None
0 Points
37 Posts
Re: Direct open web page
Oct 27, 2019 04:47 PM|GirishSharma|LINK
I don't know how do I configure iis for this directly running the app other than through vs.
Contributor
2619 Points
2752 Posts
Re: Direct open web page
Oct 27, 2019 04:50 PM|wavemaster|LINK
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.
None
0 Points
37 Posts
Re: Direct open web page
Oct 27, 2019 05:08 PM|GirishSharma|LINK
Contributor
2619 Points
2752 Posts
Re: Direct open web page
Oct 27, 2019 05:38 PM|wavemaster|LINK
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?
None
0 Points
37 Posts
Re: Direct open web page
Oct 27, 2019 05:53 PM|GirishSharma|LINK
I don't want to open the vs for running the app, just mention the app url and access it.
All-Star
53681 Points
24024 Posts
Re: Direct open web page
Oct 27, 2019 07:56 PM|mgebhard|LINK
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.
All-Star
40565 Points
6233 Posts
Microsoft
Re: Direct open web page
Oct 28, 2019 01:07 AM|Fei Han - MSFT|LINK
Hi GirishSharma,
You can refer to the following document to setup and configure IIS environment for hosting your ASP.NET web application.
https://docs.microsoft.com/en-us/iis/application-frameworks/scenario-build-an-aspnet-website-on-iis/configuring-step-1-install-iis-and-asp-net-modules
With Regards,
Fei Han
None
0 Points
37 Posts
Re: Direct open web page
Oct 28, 2019 03:21 AM|GirishSharma|LINK
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.
None
0 Points
37 Posts
Re: Direct open web page
Oct 28, 2019 03:37 AM|GirishSharma|LINK
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
All-Star
40565 Points
6233 Posts
Microsoft
Re: Direct open web page
Oct 28, 2019 05:38 AM|Fei Han - MSFT|LINK
Hi GirishSharma,
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.
https://docs.microsoft.com/en-us/iis/get-started/planning-your-iis-architecture/understanding-sites-applications-and-virtual-directories-on-iis
With Regards,
Fei Han
None
0 Points
37 Posts
Re: Direct open web page
Oct 28, 2019 07:14 AM|GirishSharma|LINK
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...
All-Star
40565 Points
6233 Posts
Microsoft
Re: Direct open web page
Oct 28, 2019 09:18 AM|Fei Han - MSFT|LINK
Hi GirishSharma,
Leave hostname empty, and try to browse http://localhost/Webform1.aspx.
With Regards,
Fei Han
None
0 Points
37 Posts
Re: Direct open web page
Oct 28, 2019 10:16 AM|GirishSharma|LINK
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.