When we come across a 404
error, it typically means that the requested resource cannot be found.
Troubleshooting Steps
1. Follow these steps similar to what is shown in the image to identify the error path.
https://i.sstatic.net/CTkCY.png
2. Check if the file exists in the root path of your webapp. If you locate it, try accessing it through the browser.
https://i.sstatic.net/5NmXk.png
3. If not found, attempt to copy the file from the project and paste it under the wwwroot path. After deployment, ensure that the folder structure resembles the one below.
https://i.sstatic.net/YiRdK.png
https://i.sstatic.net/DZCkd.png
4. Once the file is accessible, adjust the path in your code accordingly.
For more information, refer to this post:
How to utilize Bootstrap 4 in ASP.NET Core