Skip to main content

November 2026

Every post published in November 2026, newest first. Pick a day to jump straight to it.

Posts
802
Topics
75
Reading time
91 h
Active days
15

Posts 751–780 of 802 · November 3, 2026

Page 26 of 27

Tuesday, November 3, 2026

30 of 91 posts

  1. Fixed: "NU1202: Package Microsoft.EntityFrameworkCore 11.0.0-rc.3 is not compatible with net10.0"

    dotnet package add --prerelease failed with error NU1202: Package Microsoft.EntityFrameworkCore 11.0.0-rc.3 is not compatible with net10.0 (.NETCoreApp,Version=v10.0). What the supports: line means, why the project file was left unchanged, and the two fixes: a package version for your framework, or a newer target framework.

  2. Fixed: "error CS0246: The type or namespace name 'Dewiride' could not be found (are you missing a using directive or an assembly reference?)"

    dotnet build failed with error CS0246: The type or namespace name could not be found. The question at the end of the message names the two usual causes. How to tell from the name in quotes and the line number which one you have, and the fix for each: a project reference or a using directive.

  3. Fixed: "MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file."

    dotnet build stopped with MSBUILD : error MSB1011 right after dotnet sln migrate created an .slnx next to the old .sln. Why MSBuild refuses to guess, what Microsoft's MSB1011 page does and doesn't cover, and the two fixes: name the file, or keep one solution per folder.

  4. Fixed: EF Core UseCollation() Doesn't Change the MySQL Column Collation with Oracle's MySql.EntityFrameworkCore

    With Oracle's MySQL provider, EF Core's UseCollation("utf8mb4_0900_as_cs") produced a migration that applied with Done, yet the column stayed utf8mb4_0900_ai_ci and ERROR 1062 still fired. What the generated SQL showed, what Oracle documents instead (ForMySQLHasCollation), and the migration that really changes the collation.

  5. Fixed: "Failure processing application bundle. DOTNET_BUNDLE_EXTRACT_BASE_DIR is not set, and a read-write cache directory couldn't be created."

    An EF Core migrations bundle, a single-file .NET executable, failed on macOS with Failure processing application bundle. Failed to determine location for extracting embedded files. How I found a root-owned ~/.net folder, what Microsoft's docs say about the extraction folder, and two fixes.

  6. Fixed: "The migration '…_MakeDescriptionRequired' has already been applied to the database. Revert it and try again." in EF Core

    dotnet ef migrations remove refused: The migration has already been applied to the database. Revert it and try again. How to confirm which migrations are applied, revert to the previous one, remove it cleanly, and when to add a new migration instead. Real output from EF Core 10 on MySQL 9.7.

  7. Fixed: "Your target project 'Dewiride.Inventory.Api' doesn't match your migrations assembly 'Dewiride.Inventory.Data'" in EF Core

    dotnet ef migrations add failed with Your target project doesn't match your migrations assembly. Either change your target project or change your migrations assembly. What the target project and the migrations assembly are, which of the message's two fixes to pick, and why migrations list worked from the same folder.

  8. Fixed: "Your startup project 'Dewiride.Inventory.Data' doesn't reference Microsoft.EntityFrameworkCore.Design" in dotnet ef

    dotnet ef said: Your startup project doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Why installing the package where the message points is often the wrong fix, how to check which project has it, and the right startup project for a class library DbContext.

  9. Fixed: "No project was found. Change the current working directory or use the --project option." in dotnet ef

    dotnet ef migrations add stopped with No project was found. Change the current working directory or use the --project option. Why EF Core's tools can't use a solution folder, how to see which project they need, and the command that works for a .NET C# solution with the DbContext in a class library.

  10. Fixed: "error CS8618: Non-nullable property 'Description' must contain a non-null value when exiting constructor" in C#

    dotnet build failed with error CS8618: Non-nullable property must contain a non-null value when exiting constructor. What the compiler is protecting you from, the five ways to answer it, each built for real on an EF Core entity, and how to choose: required, a constructor, nullable, a default value or null!.

  11. Fixed: "The association between entity types 'Category' and 'Product' has been severed, but the relationship is either marked as required" in EF Core

    Deleting a parent row with its children loaded threw InvalidOperationException: The association between entity types has been severed, but the relationship is either marked as required. Why EF Core throws it from Remove() before any SQL runs, why a try/catch around SaveChanges misses it, and the fix for a restrict-delete relationship.

  12. Fixed: "DbUpdateException: Could not save changes. Please configure your entity type accordingly." with EF Core and MySQL

    With Oracle's MySQL provider for EF Core, every failed save throws DbUpdateException: Could not save changes. Please configure your entity type accordingly. The entity configuration is fine: the reason is the inner MySqlException. How to read it, and how to turn MySQL error numbers into proper HTTP responses.

  13. Fixed: "Cannot convert string value 'Refund' from the database to any value in the mapped 'StockMovementType' enum." in EF Core

    An EF Core query failed with InvalidOperationException: Cannot convert string value from the database to any value in the mapped enum. Why one unknown name in a string enum column stops the whole query, how to find every bad value with one SQL query, and how to keep them out.

  14. Fixed: "An operation was scaffolded that may result in the loss of data. Please review the migration for accuracy." in EF Core

    dotnet ef migrations add printed "An operation was scaffolded that may result in the loss of data" on five migrations while I built an EF Core 10 model on MySQL. How to find the operation it means, the data check for each kind of change, and what happened when I applied one without checking.

  15. Fixed: "A compatible .NET SDK was not found" (Requested SDK Version from global.json)

    Every dotnet command in a .NET C# project failed with "A compatible .NET SDK was not found. Requested SDK version: 10.0.100", even though the newer SDK 10.0.403 was installed. The cause was the rollForward rule in global.json. Here's how to read the error and fix it in one line.

  16. Fixed: "error CA1861: Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array" in an EF Core Migration

    A new EF Core migration with a two-column index stopped a .NET 10 build with error CA1861. EF Core writes the index columns as a constant array, and the migration file isn't treated as generated code, so the recommended analysis rules and TreatWarningsAsErrors fail the build. Turn CA1861 off for migration files only, as the rule's own page allows for code that runs once.

  17. Fixed: "Authentication to host '127.0.0.1' for user 'inventory_app' using method 'caching_sha2_password' failed with message: Access denied for user 'inventory_app'@'172.20.0.1' (using password: YES)" in .NET

    A .NET C# app failed to open a MySQL connection with MySqlException: Authentication to host failed with message: Access denied for user (using password: YES). How to read each part of the message, why MySQL saw 172.20.0.1 instead of localhost with Docker, and how I confirmed the cause was the password in the connection string.

  18. Fixed: "Unable to connect to any of the specified MySQL hosts" in .NET C#

    A .NET C# program failed with MySqlException "Unable to connect to any of the specified MySQL hosts" and SocketException "Connection refused": once because the connection string had the wrong port, once because MySQL was stopped. Here's how to tell which part of the path is broken, in four checks, on macOS, Linux and Windows.

  19. Fixed: "Retrieval of the RSA public key is not enabled for insecure connections" Connecting .NET C# to MySQL

    A .NET C# program failed to connect to MySQL 9.7 with "Retrieval of the RSA public key is not enabled for insecure connections" when SslMode was Disabled, then worked with the same settings a minute later. Here's why the caching_sha2_password cache makes it come and go, why AllowPublicKeyRetrieval is the wrong fix, and the right one.

  20. Fixed: "Incorrect integer value: 'Adjustment' for column 'Type' at row 3" When Reverting an EF Core Migration on MySQL

    Reverting an EF Core migration that stored an enum as a string failed on MySQL with "Incorrect integer value: 'Adjustment' for column 'Type' at row 3": the generated Down method turns the column back into an int while it holds names. Here's how to make Down convert the names back to numbers first.

  21. Fixed: "Cannot drop index 'IX_stock_movements_ProductId': needed in a foreign key constraint" in an EF Core Migration on MySQL

    Adding a two-column index that starts with a foreign key column produced an EF Core migration that drops the old foreign key index first, and MySQL refused with error 1553. Here's why the order matters, and how to swap two calls in Up and Down so the migration applies and reverts cleanly.

  22. Fixed: "BLOB, TEXT, GEOMETRY or JSON column 'Description' can't have a default value" When Making an EF Core Column Required on MySQL

    Making a nullable string property required in EF Core produced a migration with DEFAULT '' for a longtext column, which MySQL rejects with error 1101. Here's why EF Core adds that default, what MySQL allows instead, and how to edit the migration so existing NULLs are filled and the column becomes NOT NULL.

  23. Fixed: "Data too long for column 'Name' at row 2" When Applying an EF Core Migration to MySQL

    An EF Core migration that shortened a text column from longtext to varchar(200) failed on MySQL with "Data too long for column 'Name' at row 2", and left the table half-changed. Here's how to find the long values, see what the failed migration already did, fix the data and apply the migration cleanly.

  24. Fixed: "ERROR 1146 (42S02): Table 'inventory.Products' doesn't exist" in MySQL

    A query for Products failed with ERROR 1146 although the table was right there as products. MySQL on Linux and in Docker compares table names case-sensitively. Here's how to check lower_case_table_names, find the real name, and keep EF Core table names lowercase so code works on every platform.

  25. Fixed: "ERROR 1264 (22003): Out of range value for column 'UnitPrice' at row 1" in MySQL

    MySQL refused a price with ERROR 1264 because the number had more digits before the decimal point than the DECIMAL column allows. Here's how to read a column's precision and scale, find its exact limit, why too many decimals only round while too many whole digits fail, and how to fix the column or the input from EF Core and .NET C#.

  26. Fixed: "ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails" in MySQL

    An insert into a MySQL products table failed with ERROR 1452 because I guessed a category's Id, and AUTO_INCREMENT gaps made the guess wrong. Here's how to read the message, find the right parent Id, insert safely by looking it up, and return 400 Bad Request from a .NET C# API with EF Core.

  27. Fixed: "ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails" in MySQL

    Deleting a category in MySQL failed with ERROR 1451 because products still referenced it through a foreign key with ON DELETE RESTRICT. Here's how to read the message, find the rows that block the delete, move or remove them, and return 409 Conflict from a .NET C# API with EF Core.

  28. Fixed: "ERROR 1062 (23000): Duplicate entry 'adapters' for key 'categories.IX_categories_Name'" in MySQL

    MySQL rejected a new category called 'adapters' as a duplicate of 'Adapters' with ERROR 1062, because the column's collation ignores case. Here's how to read the message, choose between case-insensitive and case-sensitive uniqueness, upsert with ON DUPLICATE KEY UPDATE, and return 409 Conflict from a .NET C# API.

  29. Fixed: "ERROR 3819 (HY000): Check constraint 'CK_products_UnitPrice' is violated." in MySQL

    MySQL refused an EF Core migration with "Check constraint 'CK_products_QuantityOnHand' is violated.", and later refused a negative price with ERROR 3819. Here's how to find the rows that break the rule, fix them, apply the constraint, and turn the error into a clean 400 response in a .NET C# Web API.

  30. Fixed: "ERROR 1064 (42000): You have an error in your SQL syntax … near 'IF NOT EXISTS(SELECT * FROM `__EFMigrationsHistory`'" in an EF Core Idempotent Migration Script

    An EF Core idempotent migration script made by dotnet ef migrations script --idempotent failed in MySQL 9.7 with ERROR 1064 at its first IF NOT EXISTS block. Oracle's MySql.EntityFrameworkCore provider writes SQL Server-style IF … BEGIN … END blocks, which MySQL only accepts inside stored programs. Generate the script from the database's last applied migration instead, and it runs.