Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
Javascript y css: no se pudo cargar el servidor de recursos respondió con un estado de 404

Tengo una aplicación web Asp.Net MVC.

Cambié la URL de la ruta en RouteConfig.cs de demo/{controller}/{action/{id} a NewAccount/demo/{controller}/{action/{id}

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

Aquí está la estructura de carpetas para archivos CSS y Javacript:

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

Este es el BundleConfig.js

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

En la Vista:

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

La nueva URL de ruta funciona bien en el backend (para los controladores), pero en el frontend, faltan los estilos CSS y los scripts:

 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!