1

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

2 Answers2

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
  • 22,586
  • 6
  • 37
  • 65
  • 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
0

In my case it was a permission issue in iis inetpub folder. Took the source files to a different location from inetpub and it worked

nadun
  • 21
  • 7
  • This does not really answer the question. If you have a different question, you can ask it by clicking [Ask Question](https://stackoverflow.com/questions/ask). To get notified when this question gets new answers, you can [follow this question](https://meta.stackexchange.com/q/345661). Once you have enough [reputation](https://stackoverflow.com/help/whats-reputation), you can also [add a bounty](https://stackoverflow.com/help/privileges/set-bounties) to draw more attention to this question. - [From Review](/review/late-answers/34680720) – kikon Jul 16 '23 at 03:00