Actually, there is no web.config file when run in local but after publish automatic create web.config file.
Asked
Active
Viewed 99 times
1
-
1did you use .net 5 in your project ? – mohammadmahdi Talachi Dec 02 '20 at 11:22
-
Please refer this link https://stackoverflow.com/a/5615457/986259. This link will solve your issue. – Jig12 Dec 15 '20 at 08:50
-
@Jig12 there was already permission which you refer link but not working. – Dec 18 '20 at 00:59
2 Answers
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
-
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