Category: .net core
-
IIS 403 Errors on Static Files After a Deployment
ASP.NET Core returned HTTP 403 for some static files. IIS Dynamic IP Restrictions limited concurrent requests. This guide shows the diagnosis and the fix.
-
Fixing HTTP 500 on ASP.NET Core under IIS – the missing site-scoped environment variables
This article describes how a routine 500 error on an ASP.NET Core site under IIS was traced to missing site-scoped environment variables. In the past a published web.config…
-
Quick fix commands for killing a left over .net core process that is hogging the port.
1. Find what’s on the port 2. Kill it by PID (replace ##### with the PID from step 1) Or do it all in one line (find +…
-
Database Targeting Debugging in ASP.NET Core
Overview We tracked down a user-role issue that looked like a permissions problem, but the real cause was database targeting. One user could sign in and get roles.…
-
Connection String FAQ
This page explains a common ASP.NET Core pattern where the app does not keep its main database connection string in appsettings.json. Instead, startup code retrieves the value from Azure…
-
Why ASPNETCORE_ENVIRONMENT vs DOTNET_ENVIRONMENT Causes So Much Frustration (And How To Fix It)
If you’ve ever set: ASPNETCORE_ENVIRONMENT=Production …only to find your app still thinks it’s running in Development — welcome to the club. This has caused years of confusion in…
-
Enabling Detailed Entity Framework Error Logging for Better Debugging
The Problem When working with Entity Framework Core, SQL exceptions can be frustratingly opaque. You might see generic error messages like: Or the particularly cryptic: But these don’t…
-
ASP.NET MVC to .NET Core MVC Migration Cheat Sheet
Partial Views ASP.NET MVC (Legacy) .NET Core MVC HTML Helpers vs Tag Helpers ASP.NET MVC (Legacy) .NET Core MVC Configuration ASP.NET MVC (Legacy – Web.config) .NET Core MVC…
-
.NET Testing Cheat Sheet 🧪
Quick Start Commands 1. Navigate to Test Directory 2. Start the Main Application (Required for E2E Tests) 3. Run All Tests Specific Test Commands Run Single Test Method…
-
.NET CLI Commands Reference/Cheat Sheet
Core Commands dotnet build Builds the project and its dependencies. dotnet run Builds and runs the application. Port Specifications Using –urls Parameter Using Environment Variables Using launchSettings.json Edit Properties/launchSettings.json: Watch Commands dotnet…