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

193
Views
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
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!