How can use IIS instead of IIS Express to run ASP.Net core Application ? Is is possible to do this and can map my application to virtual directory ?
1 Answer
How can use IIS instead of IIS Express to run ASP.Net core Application ? Is is possible to do this and can map my application to virtual directory ?
If you'd like to deploy and host your ASP.NET Core application(s) on IIS, you can install the .NET Core Hosting Bundle on the IIS first, then publish your app to a IIS site you created.
Besides, if you'd like to run and debug ASP.NET Core apps with local IIS, you can refer to following docs:
Note:
1) please run Visual Studio as an administrator while you are debugging ASP.NET Core apps running with IIS
2) To make site runs as expected on HTTP protocol, please comment out app.UseHttpsRedirection(); within startup class
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
//...
//app.UseHttpsRedirection();
//...