404 errors in Asp.net MVC application

2

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

Greetings

    
asked by Luis Gabriel Fabres 25.03.2017 в 01:02
source

1 answer

1

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(
    "~/css/style_base.css",         
    "~/css/estilo_carro.css"
));

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
source