question

CoreyFleig-6304 avatar image
0 Votes"
CoreyFleig-6304 asked ChaoDeng-MSFT commented

Basic quesion on Publishing a Core Project

I'm learning how to deploy a MS Core web app. I wrote a one liner and simply used VS2019 to publish it to a folder.
The contents of the folder include an executable, and some DLLs, and some json.

So if I plop this folder on the top level of an IIS server, how will be run? If I run the executable, it only opens a dos command box, and outputs a message.
So how does it work?

I didn't set up the IIS side. My boss did, and it supports .NET framework 4.8. I can deploy classic aspx files and run them just fine, but not Core.
I've always been confused on how IIS runs a Core app.

I'm that ignorant!!!

How does it work?

dotnet-aspnet-core-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @CoreyFleig-6304,
Regarding the release and deployment of ASP.net Core applications, you can first read the following official documents:https://docs.microsoft.com/en-us/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-5.0&tabs=visual-studio

0 Votes 0 ·

1 Answer

BruceBarker-8516 avatar image
0 Votes"
BruceBarker-8516 answered

IIS can not natively host an asp.net core application. You must install a custom IIS module. See

aspnet-core-module




Once the module is installed, you create a new IIS application and app pool for the a core application. A web.config to configure the module is added to the deployed files.

Note, a dotnet publish will add the web.config.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.