404 errors in Asp.net MVC application


I have a page, that although it works correctly, when entering the crome debugger (ctrl + shift + P) it marks me errors of resource not found 404

However, the folders and resources are available and well addressed.

What can this error be caused? and how can I solve it?

here is a photo of the mvc project in VS2015


asked by Luis Gabriel Fabres 25.03.2017 в 01:02

1 answer


Initially, I would recommend having references to styles from the file App_Start\BundlesConfig.cs . Now, the references you should put them to search from the root folder with the character ~ , you will have something like this:

bundles.Add(new StyleBundle("~/styles/css").Include(

At the moment, to make sure it works, just add the ~ character at the beginning:

<link rel="stylesheet" href="~/css/style_base.css" type="text/css">
<link rel="stylesheet" href="~/css/estilo_carro.css" type="text/css">
answered by 25.03.2017 / 01:14