Keep running IIS Express and my web page after closing visual studio - asp.net

I would like to know if there is a way to keep IIS express and my web page running after closing Visual Studio. I am not just closing debug session but I want to close Visual studio itself.
Is it possible?
If nor, can I achieve that using command prompt?

It could be your project settings. Please check if you have enabled edit and continue in debug mode:
In Visual Studio, right click your web project in the Solutions Explorer > click Properties > select the 'Web' tab on the left pane > uncheck the 'Enable Edit and Continue' checkbox on the right pane.
Then run your web project and the IIS Express should retain listing of your web site even after you stop debugging.
I must say it wouldn't retain the web site after closing Visual Studio.

i am not sure there is anyway to keep open IIS Express.but
you can host website on local IIS to access your website or webpage

Related

How can Visual Studio single step debug an ASP.NET web app on IIS when a user from the Internet opens the web page?

I want to do single step debugging when an Internet user opens my ASP.NET web app, which is running on IIS 10 on Windows Server 2019. I want to initiate single step debug with a breakpoint.
( I tried following the instructions "Debug ASP.NET or ASP.NET Core apps in Visual Studio" on learn.microsoft.com but since it's from a very long time ago (9/20/2018) it is too out of date: it specifies "the Properties pane, under Servers" which doesn't exist in my Visual Studio 2019 Pro. )
How wonderful it would be to do step by step debugging of an actual external Internet user initiated session!
to debug iis project using visual studio you could follow the below steps:
open iis manager browse your site.
Launch Visual Studio as Administrator mode and select your iis site folder.
go to debug and select attach to process.
In Attach to a Process dialog box, check the option Show processes from all users.
Search for the process w3wp.exe, and click on the Attach button.
you could also check your process id in iis worker process.
Accept the warning messages. That’s is you are done. Visual Studio is now attached to IIS for debugging.

How do I publish a Web Forms Application from VS2017 to IIS from Intranet?

I have developed an ASP.NET Web Forms Application in Visual Studio 2017(CE). It's the project that I've developed for my college, as an objective to run it as an Intranet Application so that it could run on a IIS on a PC and people can access it over the Intranet. I've tried using the Web Deploy method, generated a Folder and addressed the IIS to the Published files of Visual Studio. But I don't get it to work, and I feel it's not the right way.
I've tried some research but haven't been able to figure out the right context. Can anyone please recommend me the right place of instructions? Or instruct here itself?
Go to Solution Explorer and select the project then right-click the project
Click the Publish menu item then left panel to publish screen will be open like below screen
Select the publish option as IIS, FTP, etc then click to publish button
The publish window will be open then select publish method as File System and type the Target location as http://localhost/Appname and click Next button.
Now, you can see the setting and file publishing options whatever you want to configure the options and click the Save button
Now you can find the application was published URL http://localhost/App in the output window

Can't start ANY ASP.NET projects

I've been trying to fix this for quite some time now, but I simply can't make any ASP.NET projects in Visual Studio Express 2012 for Web. I get this error when I start a new project:
Web application projects are currently configured to use IIS Express. To switch back to using the Visual Studio Development Server, change the development server option under the Projects and Solutions/Web Projects Category of the Options menu. Configured IIS Express failed with the following error:
Filename: redirect.config
Error: Cannot read Configuration file.
So I went on the internet to try and find others with the same error but I can't find a concrete solution to my problem. I find something similar for older versions, but it doesn't fix my problem. I do have the IIS Manager up under my Services (When you want to Manage Windows). I even made a virtual folder, but to no avail. Still doesn't work.
I want to use IIS
How do I fix this?
In Solution Explorer, right-click the name of the Web application project for which you want to specify a Web server, and then click Properties
In the Properties window, click the Web tab.
To choose the Visual Studio Development Server, under Servers, click Use Visual Studio Development Server.
To use a specific port number with the Visual Studio Development Server, select Specific port and enter the port number. By default, the Auto-assign Port option is selected, and the port number that has been assigned to your application appears
To choose IIS, under Servers, select Local IIS Web server. This option is not available if IIS is not enabled on your computer. A URL that combines localhost with the name of your Web application will automatically be created for you and appear in the Project URL box (for example, l ocalhost/WebApplication1).
To choose IIS, under Servers, select Local IIS Web server. This option is not available if IIS is not enabled on your computer. A URL that combines localhost with the name of your Web application will automatically be created for you and appear in the Project URL box (for example, loca lhost/WebApplication1).
To choose a custom Web server, select Use Custom Web Server. In the Server URL box, type the URL that Visual Studio should start when it runs the current project.
You may for example open you project file in notepad search for the string <useiisexpress>true</useiisexpress> replace it with the string <UseIIS>True</UseIIS> save and reload the project.
Make a copy of the project file first though.

Can I step through the source of my IIS 7 deployed MVC app?

I'd like to step through the source code of my MVC application that I just deployed locally on an IIS 7 server. Is it possible? How?
Yes.
In VS 2010, go to - Solution Explorer->Right Click Your Application->Go to Properties->Select Web Tab
And Select Use Local IIS Webserver and specify the Project Url.
Open your project in Visual Studio. Publish your application with all the debug files to IIS.
After that, go to the Debug menu a click attach to process. Find the process of your IIS site and attach it.
Also search google for Remote Debugger. It is a tool of Microsoft for those kind of perposes. I'm not sure if you need Ultimate for that

ASP.NET Debug server without debugging IE

I have an ASP.NET application in visual studio 2010, and whenever I start debugging, it attaches the debugger to IE as well as the server, which just creates loads more bloat and makes everything run slowly.
How can I start debugging on the server only?
Andy
Once the application is deployed to IIS, you can use Visual Studio on the server to attach to the web process. Also, see how to debug deployed web applications.
There is no way to start debugging of an ASP.NET site in Visual Studio without it launching a browser. So set the default browser to a different browser that you want to use so you don't waste spawning an IE instance. From Setting a Default Browser for Visual Studio:
Open a WebForm file in VS (anything ending in .aspx will do)
Select the "Browse With..." option from the File menu
Select your preferred browser from the list and click the "Set as Default" button
One way is to browse with option by clicking the browse with option and the other way is to set the default browser as any other browser than IE

Resources