ASP.NET Core
news

64stories

Stories

ASP.NET Core · IIS
503 diagnosis guide
DVDEV Community: #aspnetcore Kausar Raza Nov 12

IIS 503 Service Unavailable: Why the App Pool Keeps Stopping (ASP.NET Core)

A bare "The service is unavailable" page in IIS means the request never reached your app: HTTP.sys is answering because the application pool has been disabled after repeated worker crashes. The guide shows how to tell which kind of 503 you have and how to find the crash behind Rapid-Fail Protection on a VPS and on shared Plesk hosting.

ASP.NET Core
Per-IP rate limits
DVDEV Community: #aspnetcore Eduardo Teixeira Nov 7

Rate limiting Minimal APIs with .NET's built-in middleware

A walkthrough of adding per-IP rate limiting to a Minimal API using the middleware that has shipped with .NET since version 7. It covers naming a fixed window policy, returning 429 with a Retry-After header, excluding health checks, integration testing with WebApplicationFactory, and the multi-instance and reverse proxy pitfalls that break limits in production.

ASP.NET Core
ASP.NET Core
DVDEV Community: #csharp Pankaj Singh Nov 6

JWT access and refresh tokens in ASP.NET Core (.NET 10): rotation, revocation and the bugs to avoid

A seasoned ASP.NET Core developer shares the token flow he ships: 15-minute signed JWT access tokens, opaque refresh tokens stored only as a SHA-256 hash, rotation on every refresh, and family-wide revocation when a rotated token reappears. The post also lists the configuration mistakes he keeps fixing in other people's APIs on .NET 10 with EF Core.

CodeBehind
Loops out of the View
DVDEV Community: #dotnet Elanat Framework Nov 6

Return Templates in CodeBehind: moving loops out of the View

The CodeBehind .NET Core framework introduces Return Templates, a mechanism for keeping loops and conditionals out of the View when generating dynamic HTML. Instead of mixing @foreach into markup or concatenating HTML strings in a Controller, the structure lives in a template variable that gets replaced during processing. The feature works in both Razor and Standard syntax and supports nested, multi-stage resolution.

ASP.NET Core
ASP.NET Core
HBHabr C# (ru) gandjustas Nov 5

Modular monolith in ASP.NET out of the box with HostingStartup

The hosting startup assemblies mechanism that has shipped with ASP.NET Core since 2.0 turns out to be enough to build a modular monolith without a NuGet package or a custom plugin system. Modules are ordinary class libraries carrying `[assembly: HostingStartup]`, and the `HOSTINGSTARTUPASSEMBLIES` environment variable decides which ones load. One Docker image can then run as a monolith or as a set of services depending on that value.

ASP.NET Core
ASP.NET Core
DVDEV Community: #aspnetcore Sukhpinder Singh Nov 4

The handler signature that kept growing: using [AsParameters] in minimal APIs

Once a minimal API endpoint accumulates half a dozen query values, the handler signature becomes unreadable and injected services get lost in the crowd. The author moves those values into a [FromQuery]-annotated record struct behind [AsParameters], then compares curl output and the generated OpenAPI document to prove nothing changes for callers.

ASP.NET Core
ASP.NET Core

Role-based access to reports and folders in ASP.NET Core: users, roles and admin claims

Razi Syed, who works on Dotnet Report, shows how a self-service report builder separates authorization into three layers: server-side identity read from the auth cookie, access fields stored as data on each report and folder, and claims reserved for the operations that step outside the normal rules. The pattern carries over to any ASP.NET Core app where users create and share resources.

ASP.NET Core
ASP.NET Core

Telr payments in ASP.NET Core: the parts the docs skip

A ticketing team's account of wiring Telr's hosted payment page into ASP.NET Core, where the hard part is not the redirect but everything after it: a return URL that proves nothing, a signed callback that can arrive twice or late, and a server-side order/check that should be the only source of truth. Covers one session per order, invariant-culture amounts, callback signature checks and single-claim fulfilment.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message