From your error message, The project will find the favicon.ico
in the path of ...\wwwroot\wwwroot\favicon.ico
, But your favicon.ico
just under the wwwroot
folder, So you need to change your code like:
<link rel="icon" type="image/x-icon" href="/favicon.ico">
href will default find file under wwwroot
folder, you don't need to add wwwroot
in the path manually.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Xinran Shen