3

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

1 Answer 1

1

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();

    //...
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.