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

165
Views
No se puede obtener de js después de la implementación en IIS - 404 no encontrado

Intento hacer una solicitud de publicación http a mi controlador desde js. En localhost todo funciona perfectamente, pero cuando implemento la aplicación en IIS, busco cortar una parte de la ruta y devuelvo 404 no encontrado.
La aplicación se implementa en: https://example.com/ApplicationName/
La URL de recuperación es: https://example.com/Home/Update/?switcher=false
Pero debería ser:https://example.com/ApplicationName/Home/Update/?switcher=false

Buscar:

 let url = '/Home/Update/?switcher=' + switcher; await fetch(url, { method: 'POST' }) .then(function (response) { if (response) { toggleChatSwitch.disabled = false; } });

Controlador:

 [HttpPost] public bool Update(bool switcher) { [...] }
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!