Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
Asp.Net Core

ASP.NET Core “Random 404 After Deploy” — Broken Routing Cache

- 11.12.25 - ErcanOPAK

Kestrel caches endpoints.
When you add a new route but deploy without clearing the build output → ghost routes happen.

✔ Fix

Add this to .csproj:

<PropertyGroup>
    <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>

Ensures routes rebuild properly every deploy.

Related posts:

Cleaner .NET APIs Using IEndpointFilter for Validation

ASP.NET Core “Middleware Never Executes” — The Ordering Trap

.NET Core “HttpClient Exhaustion” — Why Your API Suddenly Stops Responding

Post Views: 3

Post navigation

SQL “Parameter Sniffing Hell” — The REAL Fix Nobody Uses
.NET Core “HttpClient Exhaustion” — Why Your API Suddenly Stops Responding

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

December 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Nov    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (915)
  • Get the First and Last Word from a String or Sentence in SQL (798)
  • How to select distinct rows in a datatable in C# (772)
  • How to add default value for Entity Framework migrations for DateTime and Bool (772)
  • How to make theater mode the default for Youtube (591)
  • Add Constraint to SQL Table to ensure email contains @ (558)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (533)
  • Average of all values in a column that are not zero in SQL (505)
  • Find numbers with more than two decimal places in SQL (421)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (416)

Recent Posts

  • VS “Auto-Using Not Working” — The Broken Roslyn Cache Fix
  • WP “Plugin Update Breaks Site” — The Rollback Life-Saver
  • Windows 11 “SSD Suddenly Slow” — Disabled Write Caching
  • Windows 11 “CPU Stays High for No Reason” — SearchIndexer Loop Bug
  • AJAX “CORS Works in Postman But Fails in Browser” — Preflight Hell
  • JS “Object Mutation Side Effects” — The Hidden Reference Bug
  • HTML5 “Form Enter Key Submits Wrong Button” — The Invisible Default Button Rule
  • CSS “Text Overflow Ellipsis Not Working” — The Missing Combo
  • .NET Core “Configuration Not Updating” — Missing ReloadOnChange
  • ASP.NET Core “Middleware Never Executes” — The Ordering Trap

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (915)
  • Get the First and Last Word from a String or Sentence in SQL (798)
  • How to select distinct rows in a datatable in C# (772)
  • How to add default value for Entity Framework migrations for DateTime and Bool (772)
  • How to make theater mode the default for Youtube (591)

Recent Posts

  • VS “Auto-Using Not Working” — The Broken Roslyn Cache Fix
  • WP “Plugin Update Breaks Site” — The Rollback Life-Saver
  • Windows 11 “SSD Suddenly Slow” — Disabled Write Caching
  • Windows 11 “CPU Stays High for No Reason” — SearchIndexer Loop Bug
  • AJAX “CORS Works in Postman But Fails in Browser” — Preflight Hell

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2025 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com