Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

185
Vistas
Javascript and css - failed to load resource server responded with a status of 404

I have a Asp.Net MVC web application.

I have changed the route URL in the RouteConfig.cs from demo/{controller}/{action/{id} to NewAccount/demo/{controller}/{action/{id}

routes.MapRoute(
  name: "Application"
  url: "NewAccount/demo/{controller}/{action/{id}",
  defaults : new { controller = "MyController", action = "Details", id = UrlParameter.Optional }
 );

Here is the folder structure for CSS and Javacript files:

-demo
  -images
  -CSS
  -Scripts
     -bundle
        - common.js
        - commonjs.map
        - verticle.js
        - verticlejs.map


-Scripts
   -contract
      -ContactInfo.js

This is the BundleConfig.js

bundles.Add(new ScriptBundle("~/NewAccount/demo/Reinstatement/globaljs").Include(
  "~/Scripts/contract/ContactInfo.js"));

In the View:

@Scripts.Render("~/NewAccount/demo/Reinstatement/globaljs")

The new route Url is working fine in the backend (for Controllers), but in the frontend, the css styles and scripts are missing -

Failed to load resource: the server responded with a status of 404 (not found)
-- http://mydomain/404.aspx?aspxerrorpath=/demo/Scrips/bundle/v-20211101/common.js
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda