0

when i publish my project to host the css and boostrap codes not working in local host is working but in host not

Error enter image description here

css and js links

enter image description here

enter image description here

SabZero
  • 54
  • 8

1 Answers1

0

Usually when we encounter a 404 error, it is because the resource is not found.

Troubleshooting Steps

1. Follow the steps like my picture to get the error path.

enter image description here

2. Try to find the file in your root path of webapp. If you can find it, try to access it by broswer.

enter image description here

3. If not, try to cpoy the file from project, and paste it under wwwroot path. After deployed, the structure of folder should like below.

enter image description here

enter image description here

4. If your file exist, you can access it. So you just need to modify your path in your code.

For more details, you can refer this post.

How to use Bootstrap 4 in ASP.NET Core

Jason Pan
  • 15,263
  • 1
  • 14
  • 29