1

enter image description here Actually, there is no web.config file when run in local but after publish automatic create web.config file.

1 Answers1

0

As far as I know, if you want to host asp.net core application on IIS, you should make sure you have installed the asp.net core host bundle.

I suggest you could try to download it from this url and install it.

More details, you could refer to this article.

Notice:

If the Hosting Bundle is installed before IIS, the bundle installation must be repaired. Run the Hosting Bundle installer again after installing IIS.

Brando Zhang
  • 19,106
  • 6
  • 28
  • 54
  • i have not install asp.net core host bundle. but in same server framework application run without any error. –  Dec 18 '20 at 01:00
  • It's working after install host bundle thank you! –  Dec 18 '20 at 05:16